message: Fixed EOF error
diff: if __name__ == "__main__":
  + try: # For getting rid of EOF error
  t = int(input()) # number of test cases
  while (t != 0):
  - n = int(input()) # number of elements in the array
  + t=-1
  + n = input() # number of elements in the array
  X = []
  X = list(map(int, input().strip().split()))
  maxc = maxg = X[0] # currentmax and globalmax initialized to first element
  @@ -14,4 +16,5 @@ if __name__ == "__main__":
  if maxc > maxg: # compare globalmax and currentmax
  maxg = maxc # if currentmax greater than globamax,initialize
  print(maxg)
  - t=-1
  \ No newline at end of file
  + except EOFError: # For getting rid of EOF error
  + pass
  