def main():
  N = int(input())
  A = [int(_)//400 for _ in input().split()]
  U = [a for a in A if a < 8]
  O = N - len(U)
  print(len(set(U)), len(set(U)) + O)
  return

if __name__ == '__main__':
  main()