n = int(input())
l = [int(i) for i in input().split()]
ans = [0 for _ in range(9)]
free = 0
for i in l:
    if i < 3200:
        ans[i//400] += 1
    else:
        free += 1
        
ans = [i for i in ans if i != 0]
print(len(ans),len(ans) + free)
