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