#include #include #include #include #include #include #include #include #include #include #include #include #define INF 10000000 #define PI 3.14159265358979323846 using namespace std; typedef long long ll; typedef pair p; typedef queue qi; typedef queue< pair > qp; typedef vector vi; typedef vector vii; typedef vector< pair > vp; int dx[4] = { 0, 1, 0, -1 }; int dy[4] = { 1, 0, -1, 0 }; int main(){ ios::sync_with_stdio(false); string s; int t,y; cin >> s >> t >> y; s.erase(t, 1); if(t < y){ s.erase(y-1, 1); } else if(t != y){ s.erase(y, 1); } cout << s << endl; return 0; }