S, t, u = input().split() L = list(S) L[int(t)] = L[int(u)] = '' print(''.join(L))