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: can i have the book, hat, and 1 ball  YOU: i need the book and hat  THEM: i can't do that. i can give you the hat but then i need the book and 3 balls  YOU: i must have the book, so for me the book and 2 balls  THEM: i can give you the book but then i need the hat and 3 balls  YOU: ok.
Output:
Yes