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: give me books and hats YOU: no, i need all books and 1 of each book and hat. THEM: i need all books or no deal YOU: actually i need all hats and you can have books but i need balls THEM: all books to me, you get rest YOU: deal. confirming that i'm taking all hats and balls?
Output:
Yes