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

Input: Consider Input: THEM: hi, i want the book and 2 balls. you can have the hats  YOU: i'm okay with the hats but i think i'd like at least one ball  THEM: thats the only thing i get points. can handle that  YOU: i'll go ahead and take the 2 hats then, you can have the rest  THEM: deal.

Output: Yes


Input: Consider Input: THEM: ball for me and i give all else... cant beat that  YOU: no can do  THEM: well then we aint gonna deal... ball is 10 for me  YOU: ok then keep sending messages  THEM: no deal  YOU: no deal  THEM: no deal  YOU: no deal  THEM: nope  YOU: nope.

Output: No


Input: Consider Input: THEM: you can have the books  YOU: the books aren't bad. i'd like the hat also though.  THEM: nope you get 4 books only  YOU: how about you get the ball and one book and i take the hat and the other three books?  THEM: so you get 4 i get 2 no thanks i want the hat and the ball  YOU: very well. i'll take the books, you can have the rest.  THEM: okay deal you take the books ill take the hat and ball.


Output: Yes


