S, t, u = [int(i) if i.isdigit() else i for i in input().split()] print("".join([S[i] for i in range(len(S)) if t != i and u != i]))