S, t, u = input().split() T = '' for i, s in enumerate(S): if i != int(t) and i != int(u): T += s print(T)