#include using namespace std; int main() { string s,r; int t,u; cin>>s>>t>>u; r=s; if(u!=t){ s.erase(s.begin()+t); if(t