import sys S, t, u = input().split() t, u = int(t), int(u) listS = [str(i) for i in S] if t == u: listS.pop(t) else: if t > u: listS.pop(t) listS.pop(u) else: listS.pop(u) listS.pop(t) for i in listS: sys.stdout.write(i) sys.stdout.write("\n")