output_description: Print the maximum value that can be displayed as your grade.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N
      s_1
      s_2
      :
      s_N
attempt: sum = 0
  for i in range(int(input())):
      tmp = int(input())
      sum += tmp if tmp % 10 != 0 else 0
  print(sum)
  
problem_description: Statement
  
  You are taking a computer-based examination. The examination consists of N
  questions, and the score allocated to the i-th question is s_i. Your answer to
  each question will be judged as either "correct" or "incorrect", and your
  grade will be the sum of the points allocated to questions that are answered
  correctly. When you finish answering the questions, your answers will be
  immediately judged and your grade will be displayed... if everything goes
  well.
  
  However, the examination system is actually flawed, and if your grade is a
  multiple of 10, the system displays 0 as your grade. Otherwise, your grade is
  displayed correctly. In this situation, what is the maximum value that can be
  displayed as your grade?
samples: [{"input": "3\n    5\n    10\n    15", "output": "25\n    \n\nYour grade will be 25 if the 10-point and 15-point questions are answered\ncorrectly and the 5-point question is not, and this grade will be displayed\ncorrectly. Your grade will become 30 if the 5-point question is also answered\ncorrectly, but this grade will be incorrectly displayed as 0.\n\n* * *"}, {"input": "3\n    10\n    10\n    15", "output": "35\n    \n\nYour grade will be 35 if all the questions are answered correctly, and this\ngrade will be displayed correctly.\n\n* * *"}, {"input": "3\n    10\n    20\n    30", "output": "0\n    \n\nRegardless of whether each question is answered correctly or not, your grade\nwill be a multiple of 10 and displayed as 0."}]