S, t, u = map(str, input().split()) str_list = list(S) delete_targets = reversed(sorted(list(set([int(t), int(u)])))) for target in delete_targets: del str_list[target] print(''.join(str_list))