S, t, u = input().split() t=int(t) u=int(u) T = [] for i in range(len(S)): if i==t or i==u: pass else: T.append(S[i]) print("".join(T))