You will be given a definition of a task first, then some input of the task.
Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.

THEM: hi ill take the books and hats. you can have the balls  YOU: i need the books. you can have the hats and one ball if i can have the books and one ball  THEM: sorry, i need the books too  YOU: i can not make a deal with out at least one of the books  THEM: same here.  YOU: okay lets split everything down the middle then  THEM: how about i get 1 book and 2 hats and you get 1 book and 2 balls?  YOU: why can't we just split it down the middle?  THEM: ok. we can do that  YOU: okay. thank you.
Output:
Yes