djfz-2020-s444344/TaskA04/run

27 lines
494 B
Plaintext
Raw Permalink Normal View History

2020-11-08 20:35:19 +01:00
#!/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))