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: you take the hats, i take the book and the 2 balls YOU: no deal, i would like the book and one ball THEM: i can't make a deal without the book and both balls YOU: neither can i, i have to have the book THEM: if you take the book, i get the rest YOU: no deal, i will take 2 balls and 2 hats and you get 1 book? THEM: not possible, no deal YOU: no deal even if i give you one hat with your book? THEM: the hats mean nothing to me YOU: me either it gives me hat hair THEM: so no deal.
Output:
No