n = int(input())
a = list(map(int,input().split()))
rate=[0]*13
for i in a:
    rate[i//400]+=1
min = 0
for i in range(8):
    if rate[i]>0:
        min+=1
max = min + rate[8] + rate[9] + rate[10] + rate[11] + rate[12]

print(min,max)
