import java.util.Scanner; public class No_292 { static void sameNumber(StringBuffer s,int i){ System.out.println(s.deleteCharAt(i)); } static void differentNumber(StringBuffer s,int i,int j){ s.deleteCharAt(i); System.out.println(s.deleteCharAt(j)); } public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); StringBuffer stageName = new StringBuffer(s); int advice_B = sc.nextInt(); int advice_C = sc.nextInt(); if(advice_B == advice_C){ sameNumber(stageName,advice_B); } else{ int bigNum = Math.max(advice_B, advice_C); int smallNum = Math.min(advice_B, advice_C); differentNumber(stageName,bigNum,smallNum); } sc.close(); } }