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

Input: Consider Input: THEM: i want the books. i can offer you the rest.  YOU: i need atleast 1 book  THEM: if i give up a book, i have to get either the hat or the ball.  YOU: you can have 2 books and 1 ball  THEM: deal.

Output: No


Input: Consider Input: THEM: i would like the hat and the book.  YOU: i need the hat and the balls  THEM: can i have the hat if you take everything else?  YOU: sure.

Output: Yes


Input: Consider Input: THEM: i will give you all the balls in exchange for the books and hat.  YOU: i could really use the books and the balls. i run a preschool and could use those items.  THEM: that wouldn't work for me. i can give you both books in exchange for the balls and the hat.  YOU: i wanted the balls also.  THEM: i understand what you want, but we're trying to reach a compromise. do you ahave a better offer?  YOU: i will give the hat in exchange for the books and the basketballs.  THEM: no deal ; i'm losing out completely with that.  YOU: how is that? it is a completely even trade.  THEM: our point values are quite different, i assume. i will compromise on 1 book and 1 hat, leaving the rest to you.


Output: Yes


