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