#include <iostream> #include <cstring> using namespace std; int main() { char s[21], a[21], b[21], *x; cin>>s>>a>>b; while(x=strstr(s,a)) strncpy(x,b,strlen(b)); cout<<s; return 0; }