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.

Example Input: The professor that the lawyers thanked introduced the presidents .
Example Output: The lawyers introduced the professor .

Example Input: The lawyers who the scientists encouraged introduced the senators .
Example Output: The senators introduced the scientists .

Example Input: The judges thanked the president .
Example Output:
The president thanked the judges .