using namespace std; int main(){ string s;cin>>s; char c; cin>>c; for(auto &e:s){ if(e==c){ e=’#’; }
} cout<<s<<endl; return 0; }