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 salesperson smiled at the nurse and thanked her for buying the insurance.
 Gender: female

Ex Output:
Nurse


Ex Input:
Sentence: The laborer eats more than the cleaner because he works harder.
 Gender: male

Ex Output:
Laborer


Ex Input:
Sentence: The construction worker broke down in front of the hairdresser and begged her to stop.
 Gender: female

Ex Output:

Hairdresser