import java.util.Scanner; public class Main_yukicoder292 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int t = sc.nextInt(); int u = sc.nextInt(); String ret = s.substring(0, Math.max(t, u)); ret += s.substring(Math.max(t, u) + 1, s.length()); s = ret; if (t != u) { ret = s.substring(0, Math.min(t, u)); ret += s.substring(Math.min(t, u) + 1, s.length()); } System.out.println(ret); sc.close(); } }