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

Input: Consider Input: THEM: hey i like the hats and the balls, couldn't dream of parting with any YOU: how about i take the book, one hat and one ball? THEM: i want both balls and a hat YOU: no deal, you can have the two balls if you want. and i'll take the book and two hats THEM: no deal YOU: 2 balls and the book. and i'll take 2 hats THEM: i dont want this book YOU: then give me the book and 2 hats, and you can have the 2 balls THEM: i want both hats and a ball YOU: it's not worth, just let me have them and we can move on. one book and 2 hats, or one of each (you said you don't want the book)

Output: No

Input: Consider Input: THEM: i get the ball and 2 hats you get the rest. YOU: that sounds reasonable. deal.

Output: Yes

Input: Consider Input: THEM: you can have everything, poppy needs that book. YOU: you can't give up the book? it's a pretty big deal for me THEM: im going to level with you, its the only deal for me. YOU: you drive a hard bargain. time to start a cowboy basketball team. 3 hats and 2 balls for me. THEM: you'll be huge in texas.
Output: Yes