n = int(input())
A = list(map(int, input().split()))
R = [0 for i in range(9)]
for i in range(n):
    R[A[i]//400] += 1
mi = 0
for i in range(8):
    if R[i] > 0: mi += 1
if mi == 0 and R[8] > 0:
    print(mi+1, min(8, mi+R[8]))
else:
    print(mi, min(8, mi+R[8]))