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