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