N = int(input()) A_S = list(map(int, input().split())) print(sum(A_S))