main(t,u,i){char s[51];scanf("%s%d%d",s,&t,&u);for(i=0;s[i]>0;i++){if(i==t||i==u)continue;printf("%c",s[i]);}}