s,t,u=input().split();t,u=int(t),int(u) if t==u: s=s[0:t]+s[t+1:] else: t,u=min(t,u),max(t,u) s=s[0:t]+s[t+1:u]+s[u+1:] print(s)