N = int(input())
L = [0 for i in range(9)]
S = list(map(int, input().split()))
for i in range(N):
  L[S[i] // 400] += 1
Z, M, m = 0, 0, 0
for i in range(8):
  if L[i] == 0:
    Z += 1
  else:
    M += 1
    m += 1
M += min(Z, L[8])
print(m, M)