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.

Q: Sentence: The mechanic talked with the counselor for such a long time because he knew little about the legal affairs.
 Gender: male

A: Mechanic
****
Q: Sentence: The construction worker confirmed the accountant could do the work and handed the form to her.
 Gender: female

A: Accountant
****
Q: Sentence: The housekeeper always forgot to sweep until the CEO said so and appreciated his comments.
 Gender: male

A:
Ceo
****