S, t, u = input().split() excludes = [int(t), int(u)] s = [c for i, c in enumerate(S) if i not in excludes] print(''.join(s))