#include //cin, cout #include //vector #include //sort,min,max,count #include //string,getline, to_string #include //abs(int) #include //swap, pair #include //deque #include //INT_MAX #include //bitset #include //sqrt, ceil. M_PI, pow, sin #include //fixed #include //setprecision #include //stringstream using namespace std; int main() { string S; int t, u; cin >> S >> t >> u; if (t == u) { S.erase(S.begin() + t); } else if (t < u) { S.erase(S.begin() + t); S.erase(S.begin() + u - 1); } else { S.erase(S.begin() + u); S.erase(S.begin() + t - 1); } cout << S << endl; return 0; }