S,t,u = input().split() t,u = int(t),int(u) if t == u : ans = S[:t] + S[t+1:] else : t,u = min(t,u),max(t,u) ans = S[:t] + S[t+1:u] + S[u+1:] print(ans)