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 counselor called the analyst and asked her about the next appointment.
 Gender: female

Output: Analyst


Input: Consider Input: Sentence: The developer consulted with the counselor for hours and paid him a lot of money.
 Gender: male

Output: Counselor


Input: Consider Input: Sentence: The clerk freely offered to help the developer with paperwork and she accepted.
 Gender: female


Output: Developer