N = int(input())
a = list(map(int,input().split()))

color = [0]*9

for rate in a:
    if rate >= 3200:
        color[8] += 1
    else:
        color[rate//400] += 1
    
ans = 0

if color[8] == 0:
    for i in range(9):
        if color[i] > 0:
            ans += 1
    print(ans,ans)
else:
    for i in range(8):
        if color[i] > 0:
            ans +=1
    print(ans,ans+color[8])