Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.

Let me give you an example: THEM: i need the hats and the ball YOU: i can give you one hat and the ball. i want 2 books and 1 hat THEM: i have to have both hats and the ball or both hats and a book to make a deal YOU: sorry, i won't make a deal without a hat THEM: if you take 1 hat i have to have everything else YOU: sorry can't do THEM: no deal YOU: yesh no deal, sorry THEM: no deal YOU: no deal.
The answer to this example can be: No
Here is why: Both participants do not agree to the deal, so the answer is No.

OK. solve this:
THEM: i would like 1 book and 1 ball YOU: ill take book and all hats THEM: how about a book and 2 hats YOU: book and three hats THEM: i want a ball and 2 hats YOU: can't do, book and three hats works THEM: no deal on my end for that YOU: ill take book and ball, you keep rest THEM: no, that was my first offer YOU: then we agree THEM: i get the book and ball then YOU: book and all hats for me if you get ball THEM: no i want 2 hats and the ball, that's fair YOU: ball to costly to me, book and all hats is worth less then ball for me THEM: then i'll take the book and 3 hats YOU: deal THEM: agrred, deal.
Answer:
Yes