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 housekeeper gave the driver a broom and told him where to clean.
 Gender: male

Ex Output:
Driver


Ex Input:
Sentence: The driver recognized the receptionist and introduced the boss to her.
 Gender: female

Ex Output:
Receptionist


Ex Input:
Sentence: The hairdresser cut the cook 's hair and asked him for tips.
 Gender: male

Ex Output:

Cook