#include<bits/stdc++.h> using namespace std; int main(){ string s;cin>>s; for(char &a:s) if(a=='5') a='*'; for(char b:s)cout<<b; return 0; }