#include <iostream> using namespace std; int main(void) { string str; char op; cin >> str >> op; for (int i = 0; i < str.size(); i++) { if (str[i] == op) str[i] = '#'; } cout << str << endl; return 0; }