14 lines
322 B
Python
14 lines
322 B
Python
import sys
|
|
|
|
|
|
def contains_number(line):
|
|
result = ''.join((char if char in "0123456789" else " ") for char in line)
|
|
list_of_nums = result.split()
|
|
return " ".join([str(num) for num in list_of_nums])
|
|
|
|
|
|
for line in sys.stdin:
|
|
words = contains_number(line).rstrip("\n")
|
|
if words != "":
|
|
print(words)
|