from collections import Counter
N = int(input())
a = [x // 400 for x in map(int, input().split())]
c = []
ans = 0
for i in a:
    if i > 7:
        ans += 1
    else:
        c.append(i)
print(len(Counter(c)), ans + len(Counter(c)))
