S,t,u=input().split() if t==u: print("".join([j for i,j in enumerate(S) if i !=int(t)])) else: print("".join([j for i,j in enumerate(S) if (i != int(t) and i != int(u))]))