sample = input() sample = sample.split() print(sample) length = int(sample[0]) math = 0 total = 0 for i in range(length): j = i + 1 j = int(j) math = int(sample[j]) total = total + math print(total)