s, t, u = input().split() S = list(s) t = int(t) u = int(u) if t == u: S.pop(t) print("".join(S)) else: a = S[:t] b = S[t+1:u] c = S[u+1:] d = a+b+c print("".join(d))