13 lines
216 B
Python
13 lines
216 B
Python
import re
|
|
import sys
|
|
|
|
|
|
def find_numbers(s):
|
|
return re.compile(r'\d+').findall(s)
|
|
|
|
input = sys.stdin.read().splitlines()
|
|
|
|
for l in input:
|
|
r = find_numbers(l)
|
|
print(f"{' '.join(r)}\n" if r else '', end='')
|