s = input()
in_number = False
new_str = ''
for c in s:
    if c.isdigit() and in_number == False:  # 如果当前是数字但是flag是F,说明是从非数字到数字切换了
        new_str += "*"
        new_str += c
        in_number = True # 改旗子,说明进入数字串中
    elif not c.isdigit() and in_number == True:  # 同上,此处说明从数字脱离进入非数字
        new_str += '*'
        new_str += c
        in_number = False # 改旗
    else:
        new_str += c
if in_number:
    # 如果屁股是个数字那这里就会是True,可以兜住最后的一个星号
    new_str += '*'
print(new_str)