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

Input: Consider Input: THEM: hi i would like the balls and 1 hat and you can have the books and 1 hat  YOU: your math doesn't add up, try again.  THEM: it adds up for me. the best i can do is offer you the hat and books. and please, i'd appreciate it if you talked to me with respect.  YOU: you said we both get a hat when there is only 1 diserepectful just direct not supposed to be a long hit and these are negotiations.  THEM: im sorry that was a mistake. i apologize for it. i am willing to give you the books and hat.  YOU: i'll take that have a good day. : )

Output: Yes


Input: Consider Input: THEM: let me get those hats, cowboy.  YOU: sorry i need one hat. i also need the book. have you considered you only have one head?  THEM: the other is for my little cowboy if you know what im talking about. gonna be honest those hats are the only thing of value for me and just one kind puts me out.  YOU: you sure you don't want some basketballs? i have no value for the basketballs. on the other hand, if i don't take a hat with me, i'm getting a raw deal.  THEM: i'm sorry to hear those balls arnt worth anything for either of us i think maybe we are both getting a raw deal in points here on the items =( last i'll ask if i can't have hats i'm afraid we are going to be at an impass  YOU: i don't think we can agree to anything sadly, not getting a hat just puts me in a tough spot.  THEM: well i dont know how to get that little no deal button to light up and unfortanlly this has went well past being worth 15 cents so lets move on you can take whatever you care to i'll take a hat and a ball.  YOU: it'll light up when the hit takes long enough, but i just need a book and a ball  THEM: welp im in this to make some money not negotiate for that extra 5 cent bonus =p so let me know what you are taking and run with it.  YOU: ok i'm taking the book and a hat. didn't mean to get you excited, but the ball was a typo.

Output: No


Input: Consider Input: THEM: can i have the hat and two books please?  YOU: you can have the hat and 1 book  THEM: no deal  YOU: you can have all the hats, i get the rest  THEM: still no deal.  YOU: i will go with the first deal then  THEM: no ball no deal!  YOU: you can have the hat and 2 books  THEM: i thought i just said no ball no deal.  YOU: you want the ball? i get the rest then  THEM: i surely have to have either one hat or two books plus the ball. the ball was the basis of all this.


Output: No


