instruction:
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.
question:
Sentence: The lawyer offered a free legal advice to the attendant, because he liked to help.
 Gender: male
answer:
Lawyer


question:
Sentence: The analyst blamed the accountant because he was in bad mood.
 Gender: male
answer:
Analyst


question:
Sentence: The chief talked to the secretary and showed her thanks.
 Gender: female
answer:

Secretary