while True:
    try:
        s = input()
        n = len(s)
        i = 0 
        res = []
        while i < n:
            if s[i].isdigit():
                res.append('*')
                temp = ''
                while i<n and s[i].isdigit():
                    temp += s[i]
                    i += 1
                res.append(temp)
                res.append('*')
            else:
                res.append(s[i])
                i += 1
        print(''.join(res))
    except:
        break