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 please have all the hats?  YOU: can i have at least one hat?  THEM: only if i can take the book along with nmy 2 hats?  YOU: take the book and 2 hats.
Output:
Yes