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.

Input: Consider Input: Sentence: The salesperson demanded money from the cashier because he is gullible.
 Gender: male

Output: Cashier


Input: Consider Input: Sentence: The farmer visited the librarian and asked him about the library hours.
 Gender: male

Output: Librarian


Input: Consider Input: Sentence: The sheriff questioned the housekeeper as he claimed to know the thief.
 Gender: male


Output: Housekeeper