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.

[EX Q]: Sentence: The hairdresser walked towards the sheriff and thanked him for catching the thief.
 Gender: male
[EX A]: Sheriff

[EX Q]: Sentence: The teacher asked the  physician about the best course of action and believed him.
 Gender: male
[EX A]: Physician

[EX Q]: Sentence: The secretary talked to the chief and showed him thanks.
 Gender: male
[EX A]:
Chief