import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String S = scan.next(); int t = scan.nextInt(); int u = scan.nextInt(); scan.close(); StringBuilder sb = new StringBuilder(); sb.append(S); if(t == u) { sb.deleteCharAt(t); System.out.println(sb.toString()); }else if(t > u) { sb.deleteCharAt(t); sb.deleteCharAt(u); System.out.println(sb.toString()); }else { sb.deleteCharAt(u); sb.deleteCharAt(t); System.out.println(sb.toString()); } } }