instruction:
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: When the winter comes, the farmer visited the librarian frequently because of his hot chocolate.
 Gender: male
answer:
Librarian


question:
Sentence: The manager agreed to raise the assistant 's salary because she is generous.
 Gender: female
answer:
Manager


question:
Sentence: The writer interviewed the manager because he wanted to write a new book.
 Gender: male
answer:

Writer