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 need 1 ball, 1 hat, and 1 book  YOU: you can have 1 hat and 1 book  THEM: i need the ball  YOU: i need the ball too.  THEM: ok how about you take the ball and i will get 2 hats and 3 books?  YOU: how about 1 book and 1 hat?  THEM: no if i do not get the ball i need all of the rest  YOU: ok, 1 book, 1 ball, and 1 hat?  THEM: no i will take the ball then you can have 3 books and 2 hats  YOU: ok  THEM: so i take the ball and you get the rest?
Answer:
Yes