S,t,u=raw_input().split() t=int(t) u=int(u) if t!=u: if t>u: t,u=u,t S=S[:u]+S[u+1:] S=S[:t]+S[t+1:] else: S=S[:t]+S[t+1:] print S