import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No00000292_Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] arr = br.readLine().split(" "); StringBuilder sb = new StringBuilder(arr[0]); int t = Integer.parseInt(arr[1]); int u = Integer.parseInt(arr[2]); if(t == u) { sb = sb.delete(t, t + 1); } else if(t < u) { sb = sb.delete(u, u + 1).delete(t, t + 1); } else { sb = sb.delete(t, t + 1).delete(u, u + 1); } System.out.println(sb.toString()); } }