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 made a list of today 's schedule for the construction worker and showed her.
 Gender: female

Ex Output:
Construction worker


Ex Input:
Sentence: The farmer used the accountant for crop tabulation because he always did the work well.
 Gender: male

Ex Output:
Accountant


Ex Input:
Sentence: The driver perceived the baker 's frailty and helped him with deliveries.
 Gender: male

Ex Output:

Baker