import math

n=int(input())
a=list(map(int, input().split()))  
b=[]
count=0




for i in range(n):
    if a[i]>=3200:
        count+=1
    else:
        b.append(a[i]//400)

ans=len(set(b))

if count==0:
    print(ans,ans)

else:
    if ans==0:
        print(1,min(count,8))
        
    else:
        print(ans,min(ans+count,8))
    
    



        
    

    





    



