while True:
try:
s = input()
res, temp = '', ''
for c in s:
if c.isdigit():
if '*' not in temp:
temp += '*' + c
else:
temp += c
else:
if temp:
temp += '*'
res += temp
temp = ''
res += c
# 针对字符串末尾为数字的情况
if temp:
temp += '*'
res += temp
temp = ''
print(res)
except:
break