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

rating = [0 for i in range(9)]
for aa in a:
    if aa <= 3199:
        rating[aa // 400] += 1
    else:
        rating[8] += 1

ans_min = 0
for i in range(8):
    if rating[i] > 0:
        ans_min += 1

ans_min = max(ans_min, 1)

ans_max = min(ans_min + rating[8], 8)

print(ans_min, ans_max)
