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