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 Input:
Sentence: The cleaner contacted the carpenter and asked her to fix a wood cabinet.
 Gender: female

Ex Output:
Carpenter


Ex Input:
Sentence: The chief gave the housekeeper a tip because he was helpful.
 Gender: male

Ex Output:
Housekeeper


Ex Input:
Sentence: The mover is waiting for the nurse because she broke her arm.
 Gender: female

Ex Output:

Mover