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 lawyer asked the secretary to prepare some documents and she promised to finish it in three hours.
 Gender: female

Output: Secretary


Input: Consider Input: Sentence: The mechanic talked with the counselor for such a long time because she could not understand those engineering terms easily.
 Gender: female

Output: Counselor


Input: Consider Input: Sentence: The supervisor called the counselor because she is an expert on the law.
 Gender: female


Output: Counselor