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 cook tried to avoid seeing the auditor because she knew the problems in the kitchen were easy to find.
 Gender: female

Output: Cook


Input: Consider Input: Sentence: The cleaner did favors for the janitor and was liked by her.
 Gender: female

Output: Janitor


Input: Consider Input: Sentence: The counselor helped the laborer because he is a very kind person.
 Gender: male


Output: Counselor