# 用到栈的概念,是数字,入栈,不是,先清栈
in_str = input()
out_str = ''
numb = []
for i in in_str:
    if i.isdigit():
        numb.append(i)
    else:
        # 先判断栈内是不是有数
        if len(numb) == 0: # 栈内没数
            out_str += i
        else:
            out_str = out_str + '*' + ''.join(numb) +'*' + i
            numb = []
if len(numb) > 0:
    print(out_str + '*' + ''.join(numb) +'*')
else:
    print(out_str)