while True:
    try:
        l = input()
        a = ''
        char_pre  = ''
        for i in l:
            if i.isdigit():
                if char_pre.isdigit() != True:
                    a += '*'
            else:
                if char_pre.isdigit():
                    a += '*'
            a += i
            char_pre  = i
        if i.isdigit():
            a += '*'
        print(a)
    except:
        break