while True:
    try:
        a = input()
        b = a
        j = -1
        for i in range(0,len(a)-1):
            if not a[i].isnumeric() and a[i+1].isnumeric():
                j += 1
                b = b[:i+j+1]+'*'+b[i+j+1:]
            if a[i].isnumeric() and not a[i+1].isnumeric():
                j += 1
                b = b[:i+j+1]+'*'+b[i+j+1:]
        if b[0].isnumeric():
            b = '*'+b
        if b[-1].isnumeric():
            b = b+'*'
        print(b)
    except:
        break