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

THEM: i take the balls and you can have the rest. YOU: i need 2 balls and a book or a hat THEM: how about 1 ball, a book, and a hat? YOU: ok.
Yes

THEM: i can take both books you have the rest of items YOU: deal. THEM: perfect, nice doing a deal with you!
Yes

THEM: i would like the hat and 2 balls YOU: i would like all the hats and all the balls. THEM: hmm. give me the book and one ball then YOU: deal.
Yes