TASK DEFINITION: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
PROBLEM: THEM: i keep book you get everythign else YOU: i'd like the balls and the book. THEM: cant, i keep the book YOU: you can have the hats. THEM: no deal YOU: ok. you take the book i'll take the rest. THEM: deal.

SOLUTION: Yes

PROBLEM: THEM: i'd like 1 of each, please. YOU: i'd like the ball and a hat, rest is yours. THEM: deal.

SOLUTION: Yes

PROBLEM: THEM: i would like to offer you one hat YOU: i will take one hat if i get the two balls. THEM: how about you get all the hats and i get everything else? YOU: okay.

SOLUTION:
Yes