import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No00000292_Main2 { 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.deleteCharAt(t); } else if(t < u) { sb = sb.deleteCharAt(u).deleteCharAt(t); } else { sb = sb.deleteCharAt(t).deleteCharAt(u); } System.out.println(sb.toString()); } }