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

l = [0 for _ in range(9)]

b = 0

for i in range(N):
    if a[i] >= 3200:
        b += 1
    else:
        if l[a[i] // 400] == 0:
            l[a[i] // 400] = 1

if sum(l) + b > 8:
    ans2 = 8
else:
    ans2 = sum(l) + b

ans1 = sum(l)
if ans1 == 0:
    ans1 = 1

print(ans1, ans2)
