Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.

Input: Consider Input: THEM: i would like the books and the hat. YOU: i want the hat and ball, you keep the books THEM: can have the books and the ball? YOU: no i want the hat and the ball, or the hat and thebooks THEM: none of those are going to work. YOU: ok the hat and the ball, or the hat and two books for me?

Output: No

Input: Consider Input: THEM: i would really like the book YOU: i rather like the book also. how about i get the book, you get the ball and we split the hats evenly. THEM: i don't want the hats, i only want the book YOU: yes, i want the book also. i'll let you have the ball and three hats. THEM: i don't want the ball YOU: we seem to have reached an impasse then. i need that book. THEM: i need the book also. YOU: best offer i can make is i get the book, you get everything else. THEM: sorry, but that doesn't work for me. i only want the book YOU: i'm afraid we won't be able to reach a deal then.

Output: No

Input: Consider Input: THEM: if i can have the balls and the hats you can have the book YOU: you can have the balls, but i would need 1 hat and the book THEM: okay so you get one hat and the book and i get the rest? YOU: deal THEM: deal.
Output: Yes