import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); StringBuilder sb = new StringBuilder(s); int a = sc.nextInt(); int b = sc.nextInt(); if(a==b){ sb.deleteCharAt(a); System.out.println(sb); }else{ sb.deleteCharAt(a); if(b>a){ sb.deleteCharAt(b-1); }else{ sb.deleteCharAt(b+1); } System.out.println(sb); } } }