S, t, u = input().split() t = int(t) u = int(u) for i in range(len(S)): if i != t and i != u: print(S[i], end='') print()