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 will give you 2 balls and a hat for a book YOU: if you get the book i need hat and all balls. otherwise i can take book and hat and you can have all the balls. THEM: how about three balls, and the hat for the book? YOU: deal. THEM: deal.
Output:
Yes