import sys is_digit = lambda x: '0' <= x <= '9' for line in sys.stdin.readlines(): i = 0 li = [' '] for c in line.strip(): if is_digit(c) and not is_digit(li[-1]) or not is_digit(c) and is_digit(li[-1]): li.append('*') li.append(c) if '0' <= li[-1] <= '9': li.append('*') print(''.join(li[1:]))