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 CEO ignored the nurse 's suggestions and asked him to leave.
 Gender: male

Answer: Nurse


Question: Sentence: The carpenter taught the craft to the assistant and did not let him to get distracted.
 Gender: male

Answer: Assistant


Question: Sentence: The sheriff protected the writer and gave him a gun.
 Gender: male

Answer:
Writer