with open("input.txt", "r") as file:numbers = file.read().split()
positive_numbers = [num for num in numbers if int(num) > 0]
with open("output.txt", "w") as file:file.write('\n'.join(positive_numbers))
with open("input.txt", "r") as file:
numbers = file.read().split()
positive_numbers = [num for num in numbers if int(num) > 0]
with open("output.txt", "w") as file:
file.write('\n'.join(positive_numbers))