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

THEM: i take hat you get the rest YOU: hat is the only thing that has value to me THEM: fine you get the hat i get the rest YOU: deal.
No

THEM: you can have the book and balls if i can have the hats YOU: how about i get the book one hat and one ball and you can have one hat and two balls? THEM: no deal. i cannot give up the hats YOU: okay then you can take the hats and i will take everything else.
Yes

THEM: i need 2 hat 1 book, what do u want YOU: i need the book, a hat and the ball THEM: i don't have hat but holds 4 book and 6 ball YOU: i need the book and 2 hats.
No