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 manager praised the cleaner and elected him to be the employee of the day.
 Gender: male

Answer: Cleaner


Question: Sentence: The nurse carefully examined the guard and issued her a prognosis.
 Gender: female

Answer: Guard


Question: Sentence: The salesperson hated the accountant because she hated all the customers.
 Gender: female

Answer:
Salesperson