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 and the balls you can have the books YOU: i need the hat and 2 balls you can have 2 books and a ball THEM: that isn't going to work for me. i need the hat. what else can you offer YOU: i need the hat for sure. THEM: okay so no deal. YOU: alright i will take all the balls and the books. you can just have the hat. THEM: i need at least one ball as well YOU: no, i can give you 1 book no balls if you take the hat. THEM: okay so i get one book and the hat? YOU: yes THEM: okay deal.
Output:
Yes