given_text = input()
start_index = input()
end_index = input()
print("The given text:",given_text )
print("Start index:", start_index)
print("End index:", end_index)
print("Output string:", given_text[int(start_index) : int(end_index)])


