TASK DEFINITION: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
PROBLEM: THEM: i would like the hat and two balls YOU: you can have the balls if i get the hat and a book THEM: ok. i will take the balls, and one book. you can have the hat and one book.

SOLUTION: Yes

PROBLEM: THEM: i would like one book and the ball YOU: ok THEM: okay.

SOLUTION: Yes

PROBLEM: THEM: i get the hats, you can have the ball and the book. YOU: hmm, that's exactly what i need. ball and book have no value to me. how can we compromise on this? > THEM: i get 1 of each and you get the rest. YOU: can i get two hats and the ball? THEM: the book and 1 hat YOU: book is zero to me. THEM: then we have a deal because ball is zero to me. YOU: 2 hats and ball for me ; book and 1 hat for you? fair?

SOLUTION:
No