sample = input() sample = int(sample) sum_math = input() n = sum_math.split() total = 0 for i in range(sample): math = int(n[i]) total = total + math print(total)