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

Input: Consider Input: THEM: can i have a ball and the book? YOU: what if you give me the book and hats? THEM: ok.

Output: Yes

Input: Consider Input: THEM: i'd love to keep the ball and 2 books ; you can keep the hats YOU: let me think, you can have the ball, i need one book and two hats THEM: unfortunately hats are worthless to me... any chance you can just take the hats? : ) YOU: i'll take the three hats, and one book THEM: i feel like that was some form of backwards jedi mindtrick, but deal. YOU: giggles, thanks.

Output: Yes

Input: Consider Input: THEM: i need the book and the balls YOU: i can do the book and 2 hats or one of each. THEM: so i get the book and 2 hats? that's a deal YOU: i meant for me. that's what i can do for me. THEM: i have to have the book YOU: then i'll take the rest. THEM: no, i need at least one other item YOU: then i'll take 2 hats and 2 books. THEM: i need the books, then i also need either a ball or a hat YOU: sorry. i meant i'll take 2 hats and 2 balls not book. THEM: so i get books and a ball? YOU: yes.
Output: Yes