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 will givebook and ball for hats YOU: would you be willing to give 1 hat also? THEM: a hat for the ball? YOU: no no i need the ball THEM: ok, then 1 hat for 1 book YOU: yes, so i get the ball and 1 hat and you get 3 hats 1 book.
Yes