x=int(input())
c=0
z=0
w=0

while(c<x):
    y=int(input())
    if(y>=10 and y<=20):
        z+=1
    else:
        w+=1
    c+=1

print(f"{z} in")
print(f"{w} out")

56430cf32d29a1db4f3827908e225c889f04f118
<mask token>

<mask token>
while c < x:
    y = int(input())
    if y >= 10 and y <= 20:
        z += 1
    else:
        w += 1
    c += 1
print(f'{z} in')
print(f'{w} out')

x = int(input())
c = 0
z = 0
w = 0
while c < x:
    y = int(input())
    if y >= 10 and y <= 20:
        z += 1
    else:
        w += 1
    c += 1
print(f'{z} in')
print(f'{w} out')

x=int(input())
c=0
z=0
w=0

while(c<x):
    y=int(input())
    if(y>=10 and y<=20):
        z+=1
    else:
        w+=1
    c+=1

print(f"{z} in")
print(f"{w} out")
