import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); int t = sc.nextInt(), u = sc.nextInt(); char[] charS = S.toCharArray(); for(int i = 0; i < S.length(); i++) { if(i == t || i == u) { continue; } System.out.print(charS[i]); } System.out.println(); } }