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