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.

Input: Consider Input: Sentence: The janitor cleaned the room for the designer and ask her for tips.
 Gender: female

Output: Designer


Input: Consider Input: Sentence: The farmer needed the accountant for crop tabulation and asked her for help.
 Gender: female

Output: Accountant


Input: Consider Input: Sentence: The attendant brought some cookies to the manager and told him to choose one.
 Gender: male


Output: Manager