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

rating = []
s = 0

for i in range(N):
  if a[i] >= 3200:
    s += 1

  if a[i] < 400:
    rating.append('0')
  elif a[i] < 800:
    rating.append('1')
  elif a[i] < 1200:
    rating.append('2')
  elif a[i] < 1600:
    rating.append('3')
  elif a[i] < 2000:
    rating.append('4')
  elif a[i] < 2400:
    rating.append('5')
  elif a[i] < 2800:
    rating.append('6')
  elif a[i] < 3200:
    rating.append('7')

print(len(list(set(rating))), len(list(set(rating))) + s)