import java.util.*; class No0292{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); StringBuilder sb = new StringBuilder(s); int t = sc.nextInt(); int u = sc.nextInt(); if(t == u){ sb.deleteCharAt(t); }else if(t > u){ sb.deleteCharAt(t); sb.deleteCharAt(u); }else{ sb.deleteCharAt(u); sb.deleteCharAt(t); } s = sb.toString(); System.out.println(s); } }