n = input() print sum(int(y) for y in raw_input().strip().split(' '))