N = int(input())
A = list(map(int, input().split()))
B = [i // 400 for i in A if i < 3200]
if B == []:
  print(1, min(N, 8))
elif len(A) == len(B):
  C = len(set(B))
  print(C, C)
else:
  print(len(B), min(len(A), 8))