S,t,u = input().split() S = [*S] t,u = int(t),int(u) if t==u: S.pop(t) elif t < u: S.pop(u) S.pop(t) else: S.pop(t) S.pop(u) print("".join(S))