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