from collections import defaultdict
n = int(input())
al = list(map(int, input().split()))


t = 0
d = defaultdict(lambda: 1)
for a in al:
    if a >= 3200:
        t += 1
    else:
        d[str(a // 400)] += 1
print(len(d), len(d)+t)
