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

Input: Consider Input: THEM: could i get two hats and two balls?  YOU: you can have 1 hat and all the balls  THEM: sold.

Output: No


Input: Consider Input: THEM: you can have the books  YOU: but i prefer the hat and ball - - - especially the hat  THEM: sorry i cant give you both i would be too low of points i can give you only the hat if i can have the books and the ball otherwise i would like the hat and ball  YOU: that doesn't work for me  THEM: i can give you a hat and a book but thats all i can give you otherwise i wont have enough point  YOU: the only possible deal that i can do is take the hat and 2 books then you get the ball and 2 books  THEM: sorry i cant do that i would need the 3 books or the hat  YOU: no deal  THEM: 3 books is worth one hat so i need one or the other  YOU: i will agree to taking 1 hat and 1 book and you can have the rest. it sounds like a draw.  THEM: okay deal you take 1 hat and 1 book and i take the rest.

Output: Yes


Input: Consider Input: THEM: i'd like the books and ball  YOU: take your books and leave me the ball and hats i'll give you one hat  THEM: can't do that. i'll take ball and 2 books. rest is yours. deal?  YOU: if there isn't a ball in my deal then there is no deal.  THEM: take ball, i take the rest  YOU: i'll take the ball with either a hat or book  THEM: sure, have the ball and a hat  YOU: deal.


Output: Yes


