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