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