fil_obj = open("005.txt", "w")
a = input(">>> ")
b = a.split(' ')
d = []
fil_obj.write(a)
for el in range(len(b)):
    c = int(b[el])
    d.append(c)
total = sum(d)
print(total)
fil_obj.write('\n' + str(total))
fil_obj.close()
