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: The analyst walked to the cashier because he needed to make a deposit.
 Gender: male
answer:
Analyst


question:
Sentence: The physician noticed the librarian 's eye twitched and treated her.
 Gender: female
answer:
Librarian


question:
Sentence: The supervisor smiled at the housekeeper and asked her to prepare some tea.
 Gender: female
answer:

Housekeeper