#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define sz size() #define pb push_back #define mp make_pair #define fi first #define se second #define all(c) (c).begin(), (c).end() #define rep(i,a,b) for(long long i=(a);i<(b);++i) #define clr(a, b) memset((a), (b) ,sizeof(a)) #define MOD 1000000007 int main(){ string s; int t,u; cin>>s; cin>>t>>u; if(s.sz>50)return -1; if(t>=s.sz||u>=s.sz)return -1; int n1 = min(t,u); int n2 = max(t,u); if(n1!=n2)s.erase(s.begin()+n2); s.erase(s.begin()+n1); cout << s << endl; return 0; }