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

Input: Consider Input: THEM: i can offer a straight split - you get 2 hats and a ball, and i get 2 books and a ball. YOU: i get both balls and a hat, you get 2 books THEM: agreed. i get 2 books and a hat.

Output: Yes

Input: Consider Input: THEM: id like both books and the hat. YOU: more balls won't suffice. i really need a hat and a book. THEM: how about you get one hat and one ball, and i get two books and one ball. YOU: ok, i can do that. THEM: okay agreed. i get two books and one ball. you get the rest.

Output: Yes

Input: Consider Input: THEM: i would like the ball and one book atleast YOU: could i have the hat and ball? and you can take all three books THEM: that leaves me in a bad spot, can you move off the ball at all? YOU: ok if you give me the original deal, hat + two books i can do that THEM: and i get the ball and one book?
Output: Yes