from collections import Counter

N = int(input())
a = [int(x) // 400 for x in input().split()]

c = Counter(a)

cnt1, cnt2 = 0, 0
for k, v in c.items():
    if k < 8:
        cnt1 += 1
    else:
        cnt2 += v

print(cnt1, min(cnt1 + cnt2, 8))
