n = input() a = map(int, input().split()) print(sum(a))