n = input() a = int(input().split()) asum=sum(a) print(asum)