n = int(input()) l = input().split() print(sum(l))