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 designer contacted the chief and asked him for requirements for the new logo.
 Gender: male
[EX A]: Chief

[EX Q]: Sentence: The chief encouraged the writer because he likes the book.
 Gender: male
[EX A]: Chief

[EX Q]: Sentence: The janitor stopped the nurse because he needed to check everyone's identity.
 Gender: male
[EX A]:
Janitor