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

THEM: i'd like the ball and the hat. YOU: give me ball u get rest or flip it THEM: no thanks. i'd like the ball at least. YOU: take ball i get rest.
Yes

THEM: i would like the books and the hat. YOU: i want the hat and ball, you keep the books THEM: can have the books and the ball? YOU: no i want the hat and the ball, or the hat and thebooks THEM: none of those are going to work. YOU: ok the hat and the ball, or the hat and two books for me?
No

THEM: if i can have the balls and the hats you can have the books YOU: balls are five, so i need one ball and all books and you keep the rest THEM: you can have one ball and one book YOU: that won't work THEM: okay then no deal. sorry the balls are the most for me as well YOU: no deal THEM: no deal YOU: no deal THEM: no deal YOU: no deal.
No