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