from collections import Counter

n=int(input())
A=list(map(int,input().split()))

sum=0
b=[]
for a in A:
    a//=400
    if a<8:
        b.append(a)
    else:
        sum+=1
b=Counter(b).most_common()
m=len(b)
x=m
y=m+sum
print(x,y)