rate = [400 * i for i in range(1, 9)]
import numpy as np
n = int(input())
a = [int(i) for i in input().split()]

maximum = np.array([0 for i in range(len(rate))])
free = 0

for an in a:
  for i,r in enumerate(rate):
    if rate[i-1] <= an and an < r:
      maximum[i] = 1
  if 3199 < an:
    free += 1

mins = (maximum == 1).sum()
print(mins, mins + min(free, (maximum==0).sum()))