#include <bits/stdc++.h> using namespace std; int main(){ string s = ""; while(cin >> s){ string res = ""; int i = 0; // while(i < s.size()){ if(isdigit(s[i])){ res += "*"; int right = i; while(right < s.size() && isdigit(s[right])){ res += s[right]; right++; i++; } res += "*"; } else{ res += s[i]; i++; } } cout << res << endl; } return 0; }