#include<iostream> using namespace std; int main() { int n,a,cnt=0,snt=0; cin>>n; int i; for(i=1;i<=n;i++){ cin>>a; if(a>=10&&a<=20) cnt++; else snt++;} cout<<cnt<<" in"<<endl; cout<<snt<<" out"<<endl; }