#include <iostream>
#include <string>
using namespace std;

int main() {

    string s;
    getline(cin, s);
    for(auto &c : s )
    {
        if(c == '5')
        {
            c = '*';
        }
    }

    cout << s << endl;
}
// 64 位输出请用 printf("%lld")