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: if i can have the hats you can have everything else  YOU: that doesnt work for me i can offer you the balls  THEM: if i can't have the balls i can not make a deal.  YOU: i just said i can offer you the balls.  THEM: i'm sorry i meant the hats. i need the hats. if i can't have those i can't make the deal.  YOU: sorry best i can do is give you a hat and a ball  THEM: that won't work for me sorry. no deal.  YOU: just type no deal until the button shows up  THEM: no deal  YOU: no deal.
Output:
No