s,a,b=input().split() a,b=(int(a),int(b)) s=s[:a]+s[a+1:] if a!=b: s=s[:b-1]+s[b:] print(s)