You will be given a definition of a task first, then some input of the task.
Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.

THEM: i'd like the balls and the hat, you can keep the books! YOU: i really need the hat and 2 balls also. THEM: the books are of no value to me... how about i take hat and 1 ball? you get the rest. terrible score, but at least i can say i tried. YOU: the hat is the best value to me. but i'll agree to your deal.
Output:
Yes