def func(): s = input() res = [] nums = "0123456789" check = False for i in s: if i in nums: if not check: res.append("*") check = True else: if check: res.append("*") check = False res.append(i) if check: res.append("*") print(''.join(res)) if __name__ == "__main__": func()