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

THEM: you can have the hats.  YOU: i would like that thanks, and i would like either all the balls or the book  THEM: i can give you one ball.  YOU: i need the book 1 hat and 2 balls  THEM: no way.  YOU: then i need both hats and either all the balls or the book  THEM: ok, i will take all the balls.  YOU: so i get both hats and the book, and you get all the balls. deal?
Yes