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 need one of each  YOU: how about you can have the book only  THEM: no, i need at least the book and one hat  YOU: i need both hats. how about you take the book and one ball  THEM: balls are worthless to me, i need a hat  YOU: i can give you one hat and one book  THEM: deal.
Output:
Yes