#include<iostream>
using namespace std;
int main(){
    string S;
    int a,b;
    cin >> S >> a >> b;
    for(int i=0;i<S.size();i++){
        if(i!=a&&i!=b)  cout << S[i];
    }
}