N = int(input())
a=list(map(int,input().split()))
b=[0]*8
x=0
for i in range(0,N):
    if a[i]>=3200:
        x=x+1
        continue
    b[a[i]//400]=1
y=x
for i in range(0,8):
    x=x+b[i]
print(x-y,x)