a = int(input()) b = input().split() sum = 0 for c in b: sum += int(c) print(sum)