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 accountant asked the manager for help and hoping that she would.
 Gender: female

Ex Output:
Manager


Ex Input:
Sentence: The laborer was referred to the designer because he was the best.
 Gender: male

Ex Output:
Designer


Ex Input:
Sentence: The mechanic fixed the housekeeper 's car and then he wrote a thankful note.
 Gender: male

Ex Output:

Housekeeper