n = input() s = [int(input()) for i in range(n)] print(sum(s))