N = int(input())
A = [int(x) for x in input().split()]

extra = 0
cnt = {}
for a in A:
    r = a // 400
    if r < 8:
        cnt[r] = cnt.get(r, 0) + 1
    else:
        extra += 1
print(len(cnt), min(len(cnt) + extra, 8))