inp = input().split(" ") name = inp[0] b = int(inp[1]) c = int(inp[2]) nls = list(name) nls[b] = 0 nls[c] = 0 ans = [] for i in nls: if i != 0: ans.append(i) print("".join(ans))