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