TASK DEFINITION: In this task, you are given a premise sentence. Your task is to write a new sentence by substituting the subject and object (i.e., the input's subject should be output's object and vice versa.). The generated sentence must be fluent and shouldn't change the voice (i.e., passive or active) of the input.
PROBLEM: The president thanked the author next to the artist .

SOLUTION: The author thanked the artist .

PROBLEM: The scientists saw the author that the senators avoided .

SOLUTION: The author saw the senators .

PROBLEM: The scientist who the judge introduced advised the actors .

SOLUTION:
The actors advised the scientist .