Instructions: 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.
Input: Sentence: The writer bought some fruit from the farmer and paid him.
 Profession: farmer
Output:
Male