import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s= sc.next(); int t = sc.nextInt(); int u = sc.nextInt(); sc.close(); StringBuilder sb = new StringBuilder(s); if( t != u){ sb.delete(t , t+1); sb.delete(u-1 , u); }else if( t == u){ sb.delete(t, t+1); } System.out.println(sb); } }