#!/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))