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 driver picked up the accountant from the airport because he could not find a bus there.
 Gender: male

Ex Output:
Accountant


Ex Input:
Sentence: The sheriff told the counselor that she would arrive in the afternoon.
 Gender: female

Ex Output:
Sheriff


Ex Input:
Sentence: The receptionist spoke with the CEO and asked her for a promotion.
 Gender: female

Ex Output:

Ceo