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

array1 = [0] * 8
over3200 = 0

for i in range(N):
  if 0 < a[i] < 400:
    array1[0] = 1
  elif 400 <= a[i] < 800:
    array1[1] = 1
  elif 800 <= a[i] < 1200:
    array1[2] = 1
  elif 1200 <= a[i] < 1600:
    array1[3] = 1
  elif 1600 <= a[i] < 2000:
    array1[4] = 1
  elif 2000 <= a[i] < 2400:
    array1[5] = 1
  elif 2400 <= a[i] < 2800:
    array1[6] = 1
  elif 2800 <= a[i] < 3200:
    array1[7] = 1
  else:
    over3200 += 1
A = array1.count(1)
B = array1.count(0)

ansmax = A + min(over3200, B)
ansmin = max(A, 1)
    
print(ansmin, ansmax)