#include #include #include int main(){ while(1){ char c1, c2, n[100]; std::cin>>n>>c1>>c2; if(n[0] == '0' && n[1] == 0 && c1 == '0' && c2 == '0') break; for (int i = 0 ; i < strlen(n) ; i++) if(n[i] == c1) n[i] = c2; std::cout<