new_contents: #!/bin/python3
  
  import math
  import os
  import random
  import re
  import sys
  
  # Complete the birthdayCakeCandles function below.
  def birthdayCakeCandles(ar):
      # I can solve this with one note
      return ar.count(max(ar))
  
  if __name__ == '__main__':
      fptr = open(os.environ['OUTPUT_PATH'], 'w')
  
      ar_count = int(input())
  
      ar = list(map(int, input().rstrip().split()))
  
      result = birthdayCakeCandles(ar)
  
      fptr.write(str(result) + '\n')
  
      fptr.close()
  
subject: Create HR_birthdayCakeCandles.py