n = int(input())
a = list(map(int, input().split()))
r = [0] * 9
for i in a:
    r[i//400] += 1

if r[-1] == 0:
    cnt = sum([1 for i in r[:-1] if i != 0])
    print(cnt, cnt)
else:
    cnt = sum([1 for i in r[:-1] if i != 0])
    res = 8 - cnt
    print(max(cnt, 1), cnt+min(res, r[-1]))