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 manager demanded to be seen by the nurse but she was busy with another patient.
 Gender: female

Ex Output:
Nurse


Ex Input:
Sentence: The lawyer met with the secretary and asked her to prepare the documents.
 Gender: female

Ex Output:
Secretary


Ex Input:
Sentence: The farmer ran faster than the tailor because he was in shape.
 Gender: male

Ex Output:

Farmer