while True:
try:
str_input = input()
result = ''
for i in range(len(str_input)):
if not str_input[i].isdecimal():
result += str_input[i]
if i != len(str_input) - 1 and str_input[i+1].isdecimal():
result += '*'
else:
result += str_input[i]
if i != len(str_input) - 1 and not str_input[i+1].isdecimal():
result += '*'
elif i == len(str_input) - 1:
result += '*'
if i == 0:
result = '*' + result
print(result)
except:
break