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

rate = [0 for i in range(9)]

for i in range(N):
    m = a[i] // 400
    rate[m] += 1

flag = False

for i in range(8):
    if rate[i] == 0:
        flag = True
    else:
        rate[i] = 1

if flag:
    print(sum(rate[:8]), sum(rate))
else:
    print(sum(rate[:8]), sum(rate[:8]))
