with open("task5.txt") as f: nums = map(int, f.read().split()) print(sum(nums))