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