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

Example input: THEM: i need the hats and the ball  YOU: i can give you one hat and the ball. i want 2 books and 1 hat  THEM: i have to have both hats and the ball or both hats and a book to make a deal  YOU: sorry, i won`t make a deal without a hat  THEM: if you take 1 hat i have to have everything else  YOU: sorry can`t do  THEM: no deal  YOU: yesh no deal, sorry  THEM: no deal  YOU: no deal.
Example output: No
Example explanation: Both participants do not agree to the deal, so the answer is No.
Q: THEM: what would you like?  YOU: i would like both hats and the book.  THEM: you can have the book but i would also like both hats and one ball  YOU: sorry, i can't give up any hats on my side.  THEM: this makes me sad and i can not either. what if we both take one hat?  YOU: i'll take a hat and a book then and you can have the rest?  THEM: i could take one hat and 3 balls....  YOU: there are only 2 balls  THEM: i meant 2 balls, my eyes were making extra!  YOU: ok, 1 hat and 1 book for me then.
A:
Yes