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 assistant laughed at the janitor because she told a funny joke.
 Gender: female

Ex Output:
Janitor


Ex Input:
Sentence: The attendant thought the mover needed help and offered her a hand.
 Gender: female

Ex Output:
Mover


Ex Input:
Sentence: The supervisor was impressed by the tailor because he showed great talent.
 Gender: male

Ex Output:

Tailor