def main(): st,b,c=input().split() b=int(b) c=int(c) allsyori(st,b,c) def allsyori(st,b,c): st1=st[:b]+st[b+1:] if b==c: print(st1) elif b>c: print(st1[:c]+st1[c+1:]) else: print(st1[:c-1]+st1[c:]) if __name__=="__main__": main()