TASK DEFINITION: In this task, you will be given a sentence, and you need to identify the set of coreference words. Coreferences are generally a set of words in the text that refer to the same person or thing. Your output set of coreference words must be strictly present in the given input sentence. Do not use any outside knowledge to create the set of coreference words. If there is a 'the' article before the person or thing you should include 'the' as well. Please separate the coreference words by commas in the output.
PROBLEM: The hairdresser befriended the cook because he gave good tips after a haircut .

SOLUTION: the, cook, he

PROBLEM: The farmer used the accountant for crop tabulation because she always did the work well .

SOLUTION: the, accountant, she

PROBLEM: The salesperson chatted with the cleaner because he wanted to sell the car .

SOLUTION:
The, salesperson, he