Task: Program Execution
Input (English): Sentence: a man sitting on a horse next to a river
Output (English): river a to next horse a on sitting man a