Task: Program Execution
Input (English): Sentence: three people riding on horseback by the beach with a dog following
Output (English): following dog a with beach the by horseback on riding people three