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