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 mover helped the writer to pack up because he had so many things in the room.
 Gender: male

Ex Output:
Writer


Ex Input:
Sentence: During lunch, the janitor looked for the attendant to steal his food.
 Gender: male

Ex Output:
Attendant


Ex Input:
Sentence: The mechanic charged the auditor one hundred dollars although she had done no work.
 Gender: female

Ex Output:

Mechanic