s,t,u=(str(i) for i in input().split()) t=int(t) u=int(u) if t==u: s=s[:t]+s[t+1:] elif t>u: s=s[:t]+s[t+1:] s=s[:u]+s[u+1:] else: s=s[:t]+s[t+1:] s=s[:u-1]+s[u:] print(s)