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 supervisor confronted the librarian and told her to produce the book.
 Gender: female

Answer: Librarian


Question: Sentence: The janitor handed the writer a book because he wanted feedback.
 Gender: male

Answer: Janitor


Question: Sentence: The analyst asked the clerk some questions and thanked her.
 Gender: female

Answer:
Clerk