N = int(input())
A = list(map(int, input().split()))
A.sort()
flags = [False] * 8
min_ans = 1
for a in A:
    idx = a // 400
    if idx < 8:
        flags[idx] = True
        min_ans = sum(flags)
    else:
        for i in range(8):
            if not flags[i]:
                flags[i] = True
                break

print(min_ans, sum(flags))

