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

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

c = 0
for i in range(N):
    m = a[i] // 400
    if m < 8:
        rate[m] = 1
    else:
        rate[8] += 1

for i in range(8):
    if rate[i] > 0:
        c += 1
c = 8 - c

if c < rate[8]:
    print(sum(rate[:8]), sum(rate[:8] + c))
else:
    print(sum(rate[:8]), sum(rate))
