import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
public static Scanner sc = new Scanner(System.in);
public static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
public static void main(String[] args) throws Exception {
String s = reader.readLine();
int len = s.length();
char[] chars = s.toCharArray();
// 从后往前一次遍历即可
int index = chars.length - 1;
for(int i=len-1;i>=0;i--){
if(chars[i] != '*'){
chars[index--] = chars[i];
}
}
while (index>=0){
chars[index--] = '*';
}
// print
System.out.println(chars);
}
}
/*
o*f*f*e*r
****offer
*/