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 the hats and the balls. YOU: i can't give up the hats. i'll take the hats. you take the balls. THEM: i need at least one hat. YOU: i'll take one hat and the book. you take a hat and we'll split the balls. THEM: ok, i guess that works. YOU: ok. deal!
Output:
Yes