n=int(input())
a= list(map(int, input().strip().split()))
if max(a)<=3199:
    for i in range(n):
        a[i]=a[i]//400
    a=list(set(a))
    print(len(a),len(a))
else:
    b=[]
    a.sort()
    for i in range(n):
        if a[i]>3199:
            f=i
            break
    jiyuu=n-f
    del a[f:n]
    for i in range(f):
        a[i]=a[i]//400
    a=list(set(a))
    l=len(a)
    print(l,min(l+jiyuu,8))
    
    
            
