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 met the clerk and asked him for assistance on paperwork.
 Gender: male

Ex Output:
Clerk


Ex Input:
Sentence: The CEO bought the accountant a car and gave him the key.
 Gender: male

Ex Output:
Accountant


Ex Input:
Sentence: The mover bought a beer for the cashier because he is cool.
 Gender: male

Ex Output:

Cashier