Task: Program Execution
Input (English): Sentence: a bed sitting in a bedroom next to a painting
Output (English): painting a to next bedroom a in sitting bed a