djfz-2020-s444379/TaskA04/run
2020-11-08 19:12:19 +01:00

20 lines
423 B
Python

#!/usr/bin/python3
import sys
separator = ' '
for line in sys.stdin:
tempword = []
numbers = ''
for char in line:
if char.isdigit() and char not in ['¹', '²', '³']:
numbers += char
else:
tempword.append(numbers)
numbers = ''
tempword.append(numbers)
tempword = [i for i in tempword if i != '']
if tempword:
print(' '.join(tempword))