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