N = input() A = [int(x) for x in input().split()] print(sum(A))