Task: Program Execution
Input (English): Sentence: a man riding a horse on the beach
Output (English): beach the on horse a riding man a