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 guard appreciated getting treatment from the nurse because he felt very sick.
 Gender: male

Output: Guard


Input: Consider Input: Sentence: The receptionist reminded the cook to wear suits because he always forgets.
 Gender: male

Output: Cook


Input: Consider Input: Sentence: The construction worker prayed for the tailor because he was faithful.
 Gender: male


Output: Construction worker