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 all the books and the hat. YOU: no i need the hat the ball and 1 book THEM: you can have the ball, but i need the hat as well. how about i take the hat and 2 books? YOU: no that wont work, i need the hat and ball and 1 book, or hat and 3 books. THEM: sorry that won't work for me either. i can only go as low as 1 hat and 2 books. YOU: no deal THEM: no problem. no deal. YOU: ok then THEM: ok. YOU: ok THEM: ok.
Output:
No