package yk725; import java.util.*; import java.lang.*; public class Main { public static void main(String [] args){ cin = new Scanner(System.in); (new Main()).run(); } static Scanner cin; void run() { char[] S = cin.next().toCharArray(); ArrayList arr = new ArrayList<>(); for(char c : S){ arr.add(c); } arr.set(cin.nextInt(), ' '); arr.set(cin.nextInt(), ' '); arr.remove((Character)' '); for(char c : arr) System.out.print(c); System.out.println(); } }