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 nurse carefully examined the guard and issued him a prognosis.
 Gender: male

Ex Output:
Guard


Ex Input:
Sentence: The manager talked to the tailor and then asked her to create a new design.
 Gender: female

Ex Output:
Tailor


Ex Input:
Sentence: The secretary asked the mover when he is available.
 Gender: male

Ex Output:

Mover