fork download
  1. # your code goes here
Success #stdin #stdout 0.07s 14116KB
stdin
text = "65 859 365"

numbers = text.split()

needed_numbers = [num for num in numbers if num in ["59", "65"]]

print(" ".join(needed_numbers))
stdout
Standard output is empty