n=input()
a=[int(i) for i in input().split()]

def cl(n):
    return n//400

buff=[0]*9


for i in a:
    color=cl(i)
    if color>8:
        color=8
    buff[color]+=1

min=0
for i in range(len(buff)-1):
    if buff[i]>=1:
        min+=1

max=min+buff[8]
if max>8:
    max=8

print(str(min)+" "+str(max))

