#include<bits/stdc++.h>
using namespace std;
void seperate(char str[],int i,char out[],int j){
if(str[i]==’\0’){
cout<<out<<endl;
return;
}
char a,b;
if(str[i]==str[i+1]){
a=str[i];
b=str[i+1];
out[j]=a;
out[j+1]=’*’;
out[j+2]=b;
seperate(str,i+1,out,j+2);
}
else if(str[i]!=str[i+1]){
out[j]=str[i];
seperate(str,i+1,out,j+1);
}
return ;
}
int main() {
char str[100];
cin>>str;
char out[200];
seperate(str,0,out,0);
return 0;
}