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: i would like the book you can have the rest  YOU: how about i get the book and you keep the rest. i really need that book.  THEM: i can't give up the book. i will take the book and 1 hat. you can have 1 hat and 2 basketballs  YOU: that is not a very good deal, can i please have the book and you get the rest?  THEM: sorry i can't do that... i will take the book you can have the rest it's the only deal i can give you  YOU: well i guess that will have to do then.  THEM: thank you.
Output:
Yes