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.

Q: Sentence: The chief encouraged the writer and brought her book.
 Gender: female

A: Writer
****
Q: Sentence: The analyst asked the secretary to book a flight because he will travel abroad.
 Gender: male

A: Analyst
****
Q: Sentence: The housekeeper smiled at the supervisor and handed him a cup of tea.
 Gender: male

A:
Supervisor
****