#include <stdio.h>
#include <string.h>

//读取数字,读到后进入读数字循环

int main()
{

    char str[101];
    while (scanf("%s", str) != EOF)
    {
        char out[101]={'\0'};
        int i = 0, j = 0;
        int len = strlen(str);
        while (i < len)
        {
            if (str[i] >= '0' && str[i] <= '9')
            {
                out[j++] = '*';
                out[j++] = str[i];
                i++;
                while (str[i] >= '0' && str[i] <= '9')
                {
                    out[j++] = str[i];
                    i++;
                }
                out[j++]='*';
            }

            out[j++]= str[i];
            i++;
        }
        printf("%s\n",out);
    }
    return 0;
}