package yukicorder; import java.util.Scanner; public class No_292 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); int t = sc.nextInt(); int u = sc.nextInt(); for(int i = 0; i < str.length(); i++){ if(i != t && i != u){ System.out.print(str.charAt(i)); } } System.out.println(); } }