#include<stdio.h>
#include<string.h>
int main()
{
char str[150];
char arr[150] = {'\0'};
scanf("%s", str);
int len = strlen(str);
int i=0, j=0;
while(i < len)
{
if( isdigit(str[i]) )
{
arr[j++] = '*';
arr[j++] = str[i];
i++;
while( isdigit(str[i]) )
{
arr[j++] = str[i];
i++;
}
arr[j++] = '*';
}
else
{
arr[j++] = str[i];
i++;
}
}
printf("%s", arr);
return 0;
}