N = int(input())
a = [int(x) for x in input().split()]
colors = [0]*9
cnt = 0
for i in a:
    if(i//400>8):
        colors[8]+=1
    else:
        colors[i//400]+=1
for i in colors[:-1]:
    if(i>0):
        cnt+=1
if(cnt == 0 and colors[8]>0):
    print(1,min(8,colors[8]))
else:
    print(cnt,min(8,cnt+colors[8]))
