def main(): N = int(input()) A = tuple([int(input()) for _ in range(N)]) print(sum(A)) main()