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: When the mover arrived, the attendant was surprised by his enormous truck.
 Gender: male

Output: Mover


Input: Consider Input: Sentence: The editor chatted with the analyst and wanted to collaborate with him.
 Gender: male

Output: Analyst


Input: Consider Input: Sentence: The sheriff suspected the hairdresser was the murderer but she claimed to be innocent.
 Gender: female


Output: Hairdresser