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 secretary went to a meeting with the construction worker because he was asked to.
 Gender: male

Output: Secretary


Input: Consider Input: Sentence: The editor stopped the janitor and showed her newspapers every day.
 Gender: female

Output: Janitor


Input: Consider Input: Sentence: The construction worker asked the nurse for an examination because she was injured.
 Gender: female


Output: Construction worker