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