Task: Program Execution
Input (English): Sentence: three log cabins with a wooden fence and gate
Output (English): gate and fence wooden a with cabins log three