#include<stdio.h>
int main(){
    char str[102];
    while(fgets(str,102,stdin)){
        int i=0;
        while(str[i]){
            if(str[i]>='0'&&str[i]<='9'){
                printf("*");
                while(str[i]>='0'&&str[i]<='9')
                    printf("%c",str[i++]);
                printf("*");
            }else{
                while(!(str[i]>='0'&&str[i]<='9')&&str[i])
                    printf("%c",str[i++]);
            }
        }
    }
}