import java.io.*; import java.util.*; class Main { public static void out (Object o) { System.out.println(o); } public static void main (String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] line = br.readLine().split(" "); char[] c = line[0].toCharArray(); int t = Integer.parseInt(line[1]); int u = Integer.parseInt(line[2]); String ans = ""; for (int i = 0; i < c.length; i++) { if (i == t || i == u) continue; ans += c[i]; } out(ans); } }