# -*-coding:utf-8-*-
import math , string

while True:
    try:
        str1 = input()
        str1_list = list(str1)
        str2_list = str1_list.copy()
        n = 0
        for i in range(0 , len(str1_list)):
            if (str1_list[i].isdigit() and i == 0):
                str2_list.insert(i , '*')
                n = n + 1
            if i < len(str1_list)-1:
                if (not str1_list[i].isdigit() and str1_list[i + 1].isdigit()) or \
                        (str1_list[i].isdigit() and not str1_list[i + 1].isdigit()):
                    str2_list.insert(i + n + 1 , '*')
                    n = n + 1
            if (str1_list[i].isdigit() and i==(len(str1_list)-1)):
                str2_list.insert(i + n +1 , '*')
        print("".join(str2_list))
    except:
        break