#include #include using namespace std; int main(){ string S; int t, u; cin >> S >> t >> u; if(t == u){ S.erase(S.begin() + t); cout << S << endl; }else{ S.erase(S.begin() + max(t, u)); S.erase(S.begin() + min(t, u)); cout << S << endl; } }