S, _t, _u = map(str, input().split()) t, u = int(_t), int(_u) result = '' for i, s in enumerate(S): if (i != t and i != u): result += s print(result)