#include <iostream> using namespace std; int main() { char s[35]; cin >> s; char c; cin >> c; for(int i = 0; s[i]; i++) if(s[i] == c) s[i] = '#'; puts(s); return 0; }