In this task, you are given a sentence and a gender. The sentence mentions two professions: one's gender is unknown and the other's gender can be identified using the gendered pronouns that refer to them in the text. You are expected to return the profession with the given gender.
--------
Question: Sentence: The librarian gave some books to the salesperson and asked him to read.
 Gender: male

Answer: Salesperson


Question: Sentence: The counselor meets the manager regularly and provides him suggestions.
 Gender: male

Answer: Manager


Question: Sentence: The assistant laughed at the janitor and treated him bad.
 Gender: male

Answer:
Janitor