S,t,u = map(str,input().split()) S_list = list(S) if t == u: S_list[int(t)] = "" else: S_list[int(t)] = "" S_list[int(u)] = "" print("".join(S_list))