TASK DEFINITION: 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.
PROBLEM: Sentence: The housekeeper troubles the physician a lot because he knows nothing about the medicine.
 Gender: male

SOLUTION: Housekeeper

PROBLEM: Sentence: The physician wanted to meet the counselor because he has more experience about medical accidents.
 Gender: male

SOLUTION: Counselor

PROBLEM: Sentence: The chief told the counselor that she took the day off.
 Gender: female

SOLUTION:
Chief