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.

Ex Input:
Sentence: The cook asked the designer if she likes the new dish.
 Gender: female

Ex Output:
Designer


Ex Input:
Sentence: The developer tried to convince the housekeeper that she needs the software.
 Gender: female

Ex Output:
Housekeeper


Ex Input:
Sentence: The auditor was baffled at the carpenter 's lack of organization and warned him that the audit would not end well.
 Gender: male

Ex Output:

Carpenter