from collections import defaultdict

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

d = defaultdict(int)
for i in range(n):
    d[a[i]//400] += 1

count = 0
for i in range(8):
    if d[i]:
        count += 1

print(min(8, count + d[8]), count)