Given the task definition and input, reply with output. Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.

THEM: i can offer 2 hats YOU: yeah that wont work for me. how about i get 2 hats and the book and you can have the ball and 1 hat THEM: i can offer the book and 1 hat YOU: throw in another hat and you got a deal THEM: i can offer all 3 hats YOU: deal.
Yes