n = int(input())
a = list(map(int, input().split()))
for i in range(n):
    a[i] = a[i] // 400
    if a[i] >= 8:
        a[i] = 8
if 8 in a:
    min_ans = len(set(a)) - 1
else:
    min_ans = len(set(a))
max_ans = min_ans + a.count(8)
print(min_ans, max_ans)
