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: ok how about you get two hats YOU: i can take the two hats, but also want the ball THEM: ok how about i give you three hats and call it even YOU: no, still want the ball THEM: ok then only the ball YOU: the ball, a book and a hat THEM: no book YOU: 2 hats and a ball for me? THEM: one hat.
Output:
Yes