import java.util.Scanner; public class yukicoder_292 { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); String s = stdIn.next(); int t = stdIn.nextInt(); int u = stdIn.nextInt(); char[] str = new char[s.length()]; for (int i = 0; i < s.length(); i++) { str[i] = s.charAt(i); } for (int i = 0; i < str.length; i++) { if ((i == t) || (i == u)) { continue; } System.out.print(str[i]); } } }