Task: Program Execution
Input (English): Sentence: person sitting on a beach with dogs and cattle
Output (English): cattle and dogs with beach a on sitting person