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 baker sold bread to the CEO and enjoyed his visits.
 Gender: male

Ex Output:
Ceo


Ex Input:
Sentence: The designer gave the guard a hat and then stole his gun.
 Gender: male

Ex Output:
Guard


Ex Input:
Sentence: The supervisor asked the baker to prepare cakes because he likes them very much.
 Gender: male

Ex Output:

Supervisor