from collections import Counter

N = int(input())
A = (int(i) // 400 for i in input().split())

mi, d = 0, 0
for k, v in Counter(A).items():
    if k >= 8:
        d += v
    else:
        mi += 1

print(mi, mi + d)