In this task, you are given a sentence and a profession that is mentioned in the sentence. The gender of the person with the given profession can be identified using the gendered pronouns that refer to them in the text. You are expected to identify the gender. Select from female and male.

Ex Input:
Sentence: The guard met with the writer and asked him for an autograph.
Profession: writer

Ex Output:
Male

Ex Input:
Sentence: The janitor hated working for the tailor but did what he said.
Profession: tailor

Ex Output:
Male

Ex Input:
Sentence: The hairdresser befriended the cook because she gave good tips after a haircut.
Profession: cook

Ex Output:
Female