#include "bits/stdc++.h" using namespace std; int main() { int t, u; string S; cin >> S >> t >> u; for (int i = 0; i < S.size(); i++) { if (i != t && i != u) cout << S[i]; } cout << endl; }