#Problem 8
text = input("Type anyhing:" )
text1 = text
start_index = int(input("Start index:" ))
end_index = int(input("Start index:" ))
print("---------------------------------------")
print("The given text:" ,text)
print("Start index:" ,start_index)
print("End index:",end_index)
print("Output string:" + text1[start_index:end_index])