import java.util.*; public class Exercise54{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); String str = sc.next(); int a = sc.nextInt(); int b = sc.nextInt(); String[] strArray = str.split(""); strArray[a] = ""; strArray[b] = ""; String newStr = ""; for (int i = 0; i < strArray.length; i++){ newStr += strArray[i]; } System.out.println(newStr); } }