include<stdio.h>
include<string.h>
int main()
{
char str[1000];
while(gets(str)!=NULL)
{
int flag=0;
if(str[0]>=0&&str[0]<='9')
printf("*");
for(int i=0;i<strlen(str);i++)
{
printf("%c",str[i]);
if((str[i]>='0'&&str[i]<='9')&&(str[i+1]<'0'||str[i+1]>'9'))
printf("*");
else if((str[i]<'0'||str[i]>'9')&&(str[i+1]>='0'&&str[i+1]<='9'))
printf("*");
}
printf("\n");
}
}