while True:
    try:
        s = str(input())
        #前后加个字母,使判断规则通用
        s = ' ' + s + ' '
        res = ''
        for i in range(len(s)-1):
            res += s[i]
            #非数字后面是数字,加*
            #数字后面是非数字,加*
            if s[i].isdigit():
                if not s[i+1].isdigit():
                    res += '*'
            else:
                if s[i+1].isdigit():
                    res += '*'
        print(res[1:])
    except:
        break