import java.util.Scanner;

public class Main {

public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    while (sc.hasNext()) {
        String str = sc.nextLine();
        boolean flag = false;
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < str.length(); i++) {
            if (Character.isDigit(str.charAt(i)) && !flag) {
                sb.append("*").append(str.charAt(i));
                flag = true;
            } else if (!Character.isDigit(str.charAt(i)) && flag) {
                sb.append("*").append(str.charAt(i));
                flag = false;
            } else {
                sb.append(str.charAt(i));
            }
        }
        if (flag) {
            sb.append("*");
        }
        System.out.println(sb.toString());
    }
}

}