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 carpenter admires the work of the hairdresser because she appreciates talent.
 Gender: female

Ex Output:
Carpenter


Ex Input:
Sentence: The cook tried to avoid seeing the auditor because she knew the problems in the kitchen were easy to find.
 Gender: female

Ex Output:
Cook


Ex Input:
Sentence: The receptionist showed the driver the way to the hall because he is very familiar with the city.
 Gender: male

Ex Output:

Receptionist