N=int(input())
t,n=[],0
for s in list(map(int,input().split())):
    for i in range(8):
        if 0+400*i<=s<=399+400*i:
            t.append(i)
            break
    else:
        n+=1
l=len(set(t))
if l==0:
    l+=1
print(str(l)+" "+str(l+n))
            
            
        