import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); StringBuilder in = new StringBuilder(sc.next()); int n = sc.nextInt(); int m = sc.nextInt(); if(n==m){ in.replace(n, n+1, ""); } if(nm){ in.replace(n, n+1, ""); in.replace(m, m+1, ""); } System.out.println(in); } }