S,t,u = map(str,input().split()) t = int(t) u = int(u) if t > u: t,u = u,t print(S[:t]+S[t+1:u]+S[u+1:])