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 want the book and ball YOU: i need the book. you can have everything else. THEM: deal.
Yes

THEM: all hats 1 ball and the rest yours YOU: will you take a ball and a hat THEM: 3 hats 1 ball YOU: how bout a ball and 2 hats THEM: for m 1 ball 2 hats ys YOU: deal.
Yes