N = int(input())
a = list(map(int, input().split()))
set_a = set()
cnt = 0 

for i in range(N):
    set_a.add(a[i]//400)
    if(a[i] >= 3200):
        cnt += 1
        
if(cnt == N):    
    print(len(set_a), end=" ")
    print(cnt)
    quit()
elif(cnt > 0):    
    print(len(set_a)-1, end=" ")
    print(len(set_a)-1+cnt)
else:
    print(len(set_a), end=" ")
    print(len(set_a))