#include using namespace std; int main() { string s; int t, u; cin >> s >> t >> u; if (t == u) { cout << s.erase(t, 1) << endl; } else { s.erase(min(u, t), 1); cout << s.erase(max(u, t) - 1, 1) << endl; } return 0; }