Definition: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
Input: THEM: if i can have the hat the rest is yuours YOU: all the hats? THEM: you can have all the hats and the ball YOU: i like books though. how about you take all the hats, and i take the book and the ball. THEM: the book is 10 for me.... the rest are worth nothing, so... i must have the book or we're not going to have a deal YOU: alright, even though its a loss for me, you take the book, and i'll take the rest.
Output:
Yes