include [HTML_REMOVED]
using namespace std;
define ll long long
int main()
{
ll x,y;
x=0;
y=0;
ll a,b,c;
cin>>a;
for(b=1;b<=a;b++)
{
cin>>c;
if(c>=10&&c<=20) x=x+1;
else y=y+1;
}
cout<<x<<” in”<<endl;
cout<<y<<” out”<<endl;
return 0;
}