n = input() n = int(n) total = 0 for i in range(n): math = input() math = int(math) total = math + total print(total)