#8
n = int(input())
a = list(map(int,input().split()))
num = [0 for i in range(8)]
cnt = 0

for i in a:
    x = i//400
    if x >=8:
        cnt +=1
    else:
        if num[x] == 0:
            num[x] +=1
    
if cnt == 0:
    print(sum(num),sum(num))
else:
    print(sum(num),sum(num)+cnt)
    
    