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 supervisor gave the housekeeper a ride because she lives far away.
 Gender: female

Output: Housekeeper


Input: Consider Input: Sentence: The developer was unable to communicate with the writer because he only understands the code.
 Gender: male

Output: Developer


Input: Consider Input: Sentence: The driver asked the writer to help with a poem because he had never written anything in his life.
 Gender: male


Output: Driver