djfz-2023-s464933/TaskD04/run.py
2023-12-17 21:57:50 +01:00

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='')