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 book and hat and one ball if i could also YOU: i need book, you take rest THEM: the book is non negotiable i have to have the book YOU: looks like a no deal THEM: no deal if you will not budge on the book, : ( YOU: waiting for button THEM: same here YOU: so, how bout that weather THEM: snow storm! maybe sunny where you are and you need the hat?? : ) YOU: keep the sun outta my eyes.

Output: No

Input: Consider Input: THEM: can i get the ball and one hat? YOU: sure.

Output: Yes

Input: Consider 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