N=int(input())
A=[int (x) for x in input().split()]

rainbow=0
rate=[]

for i in A:
    if (i>=3200):
        rainbow+=1
    else:
        rate.append(i//400)
#print(rate)
cnt=len(set(rate))
print(cnt,min(cnt+rainbow,8))
    