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

THEM: book and 2 balls to me  YOU: deal.
Yes

THEM: i'd like the ball, i wouldn't mind the books as well - are the hats of value to you?  YOU: i only want hats. you can have everything else.  THEM: deal.
Yes

THEM: i would like the hats and the book.  YOU: i would like 1 of each item  THEM: let me have both hats and take the rest and we have a deal.  YOU: deal.

Yes

