import java.util.*; import java.math.*; import java.awt.geom.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String in = sc.next(); int a = sc.nextInt(); int b = sc.nextInt(); for(int i = 0; i < in.length(); i++) { if(i != a && i != b) { System.out.print(in.charAt(i)); } } System.out.println(); } }