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

Input: Consider Input: THEM: i would like the hat and the book and you can have the balls YOU: i was going to offer the same thing... i can give the balls the book THEM: so are you offering me the book and all three balls? YOU: yes THEM: agree to that deal.

Output: Yes

Input: Consider Input: THEM: what if i get one of each? YOU: i need the ball. you can have both books and i take the hats. THEM: can't do that. how about i get the ball and one hat? YOU: how about i get the ball and one hat. THEM: can't do that. what if i get the ball and both books. YOU: the ball is the only thing i can't move on. i need to keep it. how about i keep the ball and the two books. THEM: i can't. i need the ball. what if i get the ball and you take the rest? YOU: deal. THEM: deal.

Output: Yes

Input: Consider Input: THEM: i would like 3 hats YOU: i will give you three hats if i can have everything else THEM: you got it YOU: thank you!
Output: Yes