import java.util.Scanner; 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(); String ans = ""; for(int i = 0 ; i < s.length() ; i++) { if(t == i || u == i) { continue; } ans += "" + s.charAt(i); } System.out.println(ans); } }