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 lawyer declared the baker was a liar because she often jumped to conclusions.
 Gender: female

Ex Output:
Lawyer


Ex Input:
Sentence: The baker passed the box to the guard and asked her to make the delivery.
 Gender: female

Ex Output:
Guard


Ex Input:
Sentence: The developer was not recognized by the receptionist because he only paid attention to people wearing suits.
 Gender: male

Ex Output:

Receptionist