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