N = int(input())
A = list(map(int, input().split()))

cnt = [0 for _ in range(9)]
over = 0

for a in A:
    if a < 3200:
        key = a//400
        cnt[key] = 1
    else:
        over += 1

ans = sum(cnt)

if over != 0:
    ans_min = max(ans,1)
    ans_max = min(8,ans+over)
else:
    ans_min = ans
    ans_max = ans
print(ans_min, ans_max)
