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: id like both balls and a hat YOU: that doesn't work for me, i'd need three items total to be even marginal (everything is worth 2 to me) THEM: we have a similar problem... i need both balls and a hat... the book is meaningless YOU: then no deal, sorry, just works that way sometimes THEM: ok, i will go with two balls,,, you can have the rest YOU: i can do that THEM: deal.
Output:
Yes