tmp = input().split() S = tmp[0] t = int(tmp[1]) u = int(tmp[2]) if t < u : print(S[:t] + S[t + 1:u] + S[u + 1:]) else: t, u = u, t print(S[:t] + S[t + 1:u] + S[u + 1:])