djfz-2023-s473575/TaskD04/run.py
2023-11-26 12:43:45 +01:00

11 lines
178 B
Python

import re
import sys
for line in sys.stdin:
stripped_line = line.strip()
if re.search("\d+", stripped_line):
sub = re.findall("\d+", stripped_line)
print(' '.join(sub))