n = int(input())
a = list(map(int,input().split()))

li = [0] * 9

for i in a:
    if i >= 3200:
        li[-1] += 1
    else:
        li[i//400] += 1

ans = 0

for i in range(8):
    if li[i] > 0:
        ans += 1

if li[-1] == 0:
    print(ans, ans)
else:
    print(ans, ans+li[-1])
