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

Q: THEM: i want both books and the hat. YOU: you take the hat i take the books and the balls THEM: no way. i'll take the hat and one book. YOU: okay.

A: Yes
****
Q: THEM: i would like the hat and a ball YOU: i need the hat 1 book and 1 ball THEM: i just need the hat YOU: i need the hat too THEM: well i guess we don't have a deal YOU: you can have all of the rest if i get the hat THEM: that wont work for me YOU: is there not another alternative that you could squeeze in THEM: not without the hat YOU: i really need the hat.

A: No
****
Q: THEM: i'd like the book, you can have the rest YOU: i would also like the book. how about you take two hats and the ball? THEM: the book is the only thing of value to me, sorry YOU: for me as well, but since you asked for it first, you can have the book. THEM: thank you! deal YOU: no problem! have a good rest of the day.

A:
Yes
****