S, t, u = input().split() t = int(t) u = int(u) i1, i2 = min(t, u), max(t, u) S_new = "" for i, Si in enumerate(S): if i == t: continue elif i == u: continue else: S_new += Si print(S_new)