n=int(input())
list=list(map(int,input().split()))
ans=[]
temp=0
for i in list:
    if 1<=i<=3199:ans.append(i//400)
    else:temp+=1
if 0<len(set(ans)):
    print(len(set(ans)),len(set(ans))+min(8-len(set(ans)),temp))
else:
    print(1,min(8,temp))