sentence = input("Enter a sentence: ") st = int(input("Enter a start number: ")) en = int(input("Enter an end number: ")) print(sentence[st-1:en-1])