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

ans = [0] * 9
for ai in a:
    if ai // 400 > 7:
        ans[8] += 1
    else:
        ans[ai // 400] = 1

if sum(ans[:-1]) == 0 and ans[-1]:
    print(0, 1)
else:
    print(sum(ans[:-1]), sum(ans))