n = int(input())

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


ans = [0] * 8
hi_rate = 0

for i in range(n):
    buf = int(a[i]/400)
    if buf <= 7:
        ans[buf] += 1
    else:
        hi_rate += 1

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

if down == 0:
    minm = 1
    maxm = hi_rate
else:
    minm = down
    maxm = down + hi_rate
if maxm > 8:
    maxm = 8

print(str(minm) + ' ' + str(maxm))