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

Input: Consider Input: THEM: i need one of each YOU: i need both books and a hat THEM: i can do that, if i get the ball and one hat YOU: so i would get both books and a hat? THEM: yes YOU: i can do that.

Output: Yes

Input: Consider Input: THEM: i'd like the hat and all balls YOU: can i keep one ball THEM: then i also need 2 books YOU: sorry no deal THEM: let's put it this way. i need the hat and either all balls or all books. you choose YOU: deal THEM: which? YOU: take all balls and hat i keep all book THEM: ok.

Output: Yes

Input: Consider Input: THEM: i would like the book and the balls. you can have all of the hats YOU: i need hats and two balls and we call it the day THEM: deal YOU: ok so confirm.
Output: Yes