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: how about you tell me what you want and let's see what we can do YOU: i'd like the book and the balls. THEM: i can't give you the book and in addition i would like one hat YOU: that would leave me with 3. i don't want to get rejected. can you let me have the rest if you get the book? THEM: you won't get rejected unless you have been making consistently crappy deals, but i will make that deal for you. i will take the book and give you the hats and balls YOU: thanks.
Output:
Yes