#include<iostream>
using namespace std;
int main()
{
    string str;
    while(cin>>str)
    {
        int i=0;
        string res;
        while(str[i]!='\0')
        {
            if(str[i]>='0'&&str[i]<='9')
            {
                res.push_back('*');
                while(str[i]!='\0'&&str[i]>='0'&&str[i]<='9')
                {
                    res.push_back(str[i]);
                    i++;
                }
                res.push_back('*');
            }
            else
            {
                res.push_back(str[i]);
                i++;
            }
        }
        cout<<res<<endl;
    }
    return 0;
}