from collections import Counter

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

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