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