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

THEM: i'd like the books and balls, you can have the hats YOU: ill take the hats but i need the balls as well THEM: i need at least one ball and all the books. deal? YOU: i can offer you the books and 1 hat THEM: hats are worthless to me. i'll take books, you can have the rest YOU: ok deal.
Yes

THEM: i just want the balls YOU: as long as i can have everything else? THEM: sure.
Yes

THEM: books and hats YOU: aaw! you giving me that? THEM: no for me YOU: no deal THEM: make an offer YOU: the hats and book. thats what i want THEM: balls worth 0 for me YOU: too bad, same over here. THEM: i take the hats and you take the book and all the balls YOU: lets split the hats. i take all the balls you take the book THEM: ok deal.
Yes