#include <stdio.h>
#include<string.h>
int main() {
    char s[100]={0};
    gets(s);
    int len=strlen(s);
    if(s[0]>='0'&&s[0]<='9')
        printf("*");
    for(int i=0;i<len;i++)
    {
        if((s[i]<'0'||s[i]>'9')&&s[i+1]>='0'&&s[i+1]<='9')
        {
            printf("%c",s[i]);
            printf("*");
        }
        else if((s[i+1]<'0'||s[i+1]>'9')&&s[i]>='0'&&s[i]<='9')
        {
            printf("%c",s[i]);
            printf("*");
        }
        else
            printf("%c",s[i]);
    }

    return 0;
}