N = int(input())
A = list(map(int, input().split()))
kind = 0
cnt = 0
used = [False]*8
for a in A:
    tmp = a//400
    if tmp < 8 and not used[tmp]:
        kind += 1
        used[tmp] = True
    elif tmp >= 8:
        cnt += 1
print(kind, kind+cnt)
