#include using namespace std; int main(){ string s;cin>>s; int a,b;cin>>a>>b; for(int i = 0; s.size() > i; i++){ if(i+1 == a || i+1 == b)continue; cout << s[i]; } cout << endl; }