str = input() aaa = input() split_first = aaa.split() head = int(split_first[0]) foot = int(split_first[1]) print(str) print(aaa) subHead = str[head:head] subFoot = str[foot:foot] leng= (len(first)) if head > 0: headStr = str[0:head] else: headStr = "" if (subFoot -subHead) >1 : centStr = str[head+1:foot-1] else: centStr = "" if len(foot) < len(str): footStr = str[foot+1:len(str)] else: footStr = "" print(headStr + subHead+ centStr + subFoot+ footStr) #print(first#) #leng= (len(first)) #lengheaf= (len(first)//2) #lengheaf= (leng//2) #print(lengheaf) #print("比較開始") #print(text[0: lengheaf]) #print(text[lengheaf:leng]) #if text[0: lengheaf] == text[lengheaf:leng]: #if first[0: lengheaf] == first[lengheaf:leng]: # print("YES") #else: # print("NO")