from collections import Counter

n = int(input())
a = [int(i) for i in input().split()]
c = Counter()
b = 0
for i in a:
    if i < 3200:
        c.update([i//400])
    else: b += 1
print(len(c), len(c) + b)
