djfz-2020-s444344/TaskA04/run
Zofia Bączyk 4ce9ce83bd attempt-1
2020-11-08 20:35:19 +01:00

27 lines
494 B
Python

#!/usr/bin/python3
import sys
def num(x):
if x >= '0' and x <= '9':
return True
else:
return False
def numbers(x):
temp = ''
array = []
for i in x:
if num(i):
temp = temp + i
else:
if temp != '':
array.append(temp)
temp = ''
return array
for line in sys.stdin:
temp = numbers(line)
if len(temp) != 0:
print(' '.join(temp))