text: text = input('Enter text: ')
  start_index = int(input('Enter start index: '))
  end_index = int(input('Enter end index: '))
  
  print('The given text:', text)
  print('Start index:', start_index)
  print('End index:', end_index)
  print('Output string:', text[start_index:end_index])
  