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

Input: Consider Input: THEM: im thinking hat and 3 balls for me,,, 2 books and 1 ball for you YOU: three balls and two books for me THEM: lets split the balls... so 2 balls each, i take the hats, you the books YOU: ok deal.

Output: Yes

Input: Consider Input: THEM: you take the balls, i take the books and the hat YOU: i keep the hat you take everything else THEM: i can't do that, i need the hat or no deal YOU: same here, no deal THEM: no deal YOU: no deal THEM: no deal YOU: no deal THEM: no deal YOU: no deal.

Output: No

Input: Consider Input: THEM: i would like the balls. YOU: i need at least one ball and the hat and the book THEM: i can't do that. i can give you 1 ball and the book. YOU: that will not work. i need the hat and two balls THEM: i need atleast 2 balls. YOU: you can have two balls if i can have the rest THEM: that will have to work. YOU: okay great! thank you!
Output: Yes