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