import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String originalStr = scan.nextLine();
char[] chrs = originalStr.toCharArray();
StringBuffer sb = new StringBuffer("");
int sign = 0;
int start = 0;
for (int i = 0; i < chrs.length; i++) {
char currentChr = chrs[i];
if (currentChr >= '0' && currentChr <= '9') {
if (sign == 0) {
sign = 1;
start = i;
}
} else {
if (sign == 1) {
sign = 0;
sb.append("*");
sb.append(originalStr.substring(start, i));
sb.append("*");
}
sb.append(currentChr);
}
}
if (sign == 1) {
sb.append("*");
sb.append(originalStr.substring(start));
sb.append("*");
}
System.out.println(sb);
}
}