S,t,u=input().split() X={int(t),int(u)} for i in range(len(S)): if i in X: continue else: print(S[i],end="")