S, t, u = input().split() S = list(S) t = int(t) u = int(u) if t > u: t, u = u, t if t != u: S.pop(u) S.pop(t) else: S.pop(t) print(''.join(S))