N = int(input())
A = sorted(map(int, input().split()))

border = [1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200]

ret = 0
for i in range(len(border) - 1):
    if len(list(filter(lambda n: border[i] <= n < border[i + 1], A))) > 0:
        ret += 1
print(ret, ret + len(list(filter(lambda n: 3200 <= n, A))))
