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

Input: Consider Input: THEM: you keep the balls i keep the hat and the book YOU: sorry mate, but i need that hat. THEM: so do i, i have to have the book and the hat or no deal YOU: i'm ok with giving you the book, but not the hat. THEM: no hat, no deal YOU: no deal then, i can't give up the hat. THEM: no deal YOU: no deal. THEM: no deal YOU: i wonder how many more times we have to say no deal until we can click no deal.

Output: No

Input: Consider Input: THEM: i'll take the hat and 2 of the balls. you can have the book and 2 balls. YOU: could you trade the hat for some balls? THEM: no, i must have the hat. YOU: ok, well i can go with your original offter. the book and 2 balls. THEM: sounds good.

Output: Yes

Input: Consider Input: THEM: you can have the hats if i can have the balls and book YOU: i can't do that, how about 3 hats and 1 ball? THEM: the hats are of no value to me. i would need the book and one ball YOU: i meant for me, so basically, what you said : ) THEM: perfect. thanks.
Output: Yes