N = int(input())
S = [int(zz) for zz in input().split()]

ans = set()
p = 0
for i in S:
    q = i // 400
    if q < 8:
        ans.add(q)
    else:
        p += 1

if N == 1:
    print(1, 1)
else:
    print(len(ans), len(ans) + p)
