import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import static java.lang.System.in; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(in)); String[] inputs = reader.readLine().split(" "); String S = inputs[0]; int t = Integer.parseInt(inputs[1]); int u = Integer.parseInt(inputs[2]); char[] ss = S.toCharArray(); ss[t] = ' '; ss[u] = ' '; StringBuilder builder = new StringBuilder(); for (int i = 0; i < ss.length; i++) { if (ss[i] != ' ') { builder.append(ss[i]); } } System.out.println(builder.toString()); } }