Task: Program Execution
Input (English): Sentence: a living room with a fireplace and a dog
Output (English): dog a and fireplace a with room living a