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

col = set()
wildc = 0

for i in range(N):
  if A[i] >= 3200:
    wildc += 1
  else:
    col.add(A[i] // 400)

print(len(col), min(8, len(col)+wildc))