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

Example Input: THEM: gimme the hat and 3 books YOU: if you get the hat i need everything else THEM: no, need books at least 3 YOU: ok, then i need the hat and 3 other items THEM: hat and 2 books to me YOU: if you take the hat i take everything else THEM: no deal YOU: ok then no deal, keep it going THEM: no deal YOU: pffft THEM: awwwwee.
Example Output: No

Example Input: THEM: gimme ballz YOU: you can have balls if i can have the rest THEM: gimme a book with the ball YOU: no. you can only have ball if i can have all books and all hats. THEM: bad deal for me then... why so mean? YOU: bad deal for me, they didn't give me a lot to work with. THEM: one of each for me, 2 books for u YOU: no deal. THEM: oh noes. gimme ball and a book YOU: 1 ball for you. 3 books and 1 hat for me. THEM: gimme ball and book YOU: no deal. THEM: i found a stale french fry.... i'll throw that in the pot. you good with that?
Example Output: No

Example Input: THEM: i'd like the hats and ball. YOU: can't do that. i need two hats and the books. THEM: how about you take the books and one hat? YOU: cannot do that. i could do the books, one hat, and the ball. THEM: can't do that. i need the ball. you can have the books. YOU: then i need two hats. THEM: i can't give up two hats. i need two hats myself for any value. YOU: if you need two hats, then i need the ball. THEM: can't give up hats and the ball. i can give you the books for sure. i'll take the ball. we need to figure out the hat situation YOU: i can't give up two hats without getting the ball in return for one of them. THEM: i can do one hat. i'll take the ball and one hat. you can have the rest. YOU: deal. THEM: deal!
Example Output:
Yes