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(); if(t == u) { System.out.println(s.substring(0, t) + s.substring(t + 1)); } else if(t > u){ System.out.println(s.substring(0, u) + s.substring(u + 1, t) + s.substring(t + 1)); } else if(u > t) { System.out.println(s.substring(0, t) + s.substring(t + 1, u) + s.substring(u + 1)); } } }