import java.util.Scanner;
/**
* HJ96 表示数字
*/
public class HJ096 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
String input = sc.next();
//把所有的数字段提取出来,前后加上星号再放回去
String result = input.replaceAll("([0-9]+)", "*$1*");
System.out.println(result);
}
sc.close();
}
}