N=int(input())
A=list(map(int,input().split()))
c=[0]*9
for i in A:
    c[i//400]+=1
for i in range(8):
    if c[i]>0:
        c[i]=1
if c[:8]==[0]*8:
    print(min(1,c[-1]),c[-1])
else:
    print(sum(c[:8]),sum(c[:8])+c[-1])
