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

color = [0] * 8
free = 0
for i in a:
    if i < 3200:
        color[i//400] += 1
    else:
        free += 1

free = min(free, 8)

ans = 0
for i in color:
    if i > 0:
        ans += 1

if ans == 0:
    ans1 = 1
else:
    ans1 = ans
ans2 = ans + free

print(ans1, ans2)