def get_rank(s):
  if s < 400:
    return 0
  elif s < 800:
    return 1
  elif s < 1200:
    return 2
  elif s < 1600:
    return 3
  elif s < 2000:
    return 4
  elif s < 2400:
    return 5
  elif s < 2800:
    return 6
  elif s < 3200:
    return 7
  else:
    return 8

def resolve():
  n = int(input())
  a = list(map(int, input().split()))
  s = set()
  free = 0
  for score in a:
    rank = get_rank(score)
    if (rank == 8):
      free += 1
    else:
      s.add(rank)
  print(max(1, len(s)), min(8, len(s) + free))
  return

if __name__ == "__main__":
  resolve()
