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

THEM: give me the balls and hat YOU: balls are five for me THEM: give me one ball and the hat, and all books YOU: nah, sorry, i need all books and oneball THEM: ok YOU: so you take hat and one ball.
Yes

THEM: i'd like three hats and the book. YOU: i can do three hats but i need reast THEM: hmm. that doesn't work for me. i'll take a basketball and two hats instead. YOU: deal.
Yes

THEM: books and balls, and i keep the rest deal? YOU: i get 3 books and 2 balls? THEM: two books and two balls, thats what i meant YOU: i like 3 books better THEM: ok deal.
Yes