x=int(input()) l=[int(input()) for i in range(x)] sum=0 for i in l: sum = sum + i print(sum)