import java.util.Arrays; import java.util.HashSet; import java.util.LinkedList; import java.util.Scanner; import java.util.Set; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); final String S = sc.next(); final int t = sc.nextInt(); final int u = sc.nextInt(); for(int i = 0; i < S.length(); i++){ if(i != t && i != u){ System.out.print(S.charAt(i)); } } System.out.println(); } }