n=int(input())
list=list(map(int,input().split()))
ans=[]
temp=0
for i in list:
    if 1<=i<=399:
        ans.append(1)
    elif 400<=i<=799:
        ans.append(2)
    elif 800<=i<=1199:
        ans.append(3)
    elif 1200<=i<=1599:
        ans.append(4)
    elif 1600<=i<=1999:
        ans.append(5)
    elif 2000<=i<=2399:
        ans.append(6)
    elif 2400<=i<=2799:
        ans.append(7)
    elif 2800<=i<=3199:
        ans.append(8)
    else:temp+=1
print(max(1,len(set(ans))),len(set(ans))+min(8-len(set(ans)),temp))