#include using namespace std; int main(int argc, const char* argv[]) { string S; int t, u; cin >> S >> t >> u; S[t] = 'X'; S[u] = 'X'; for (auto&& c : S) if (c != 'X') cout << c; cout << endl; return 0; }