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 basketballs and the hat  YOU: you can have 1 basketball and the hat. i'll take the rest.  THEM: i'll take the 3 basketballs and you can have the rest  YOU: no. you can have 2 basketballs and 1 book. i will take 1 basketball, 1 hat, and 1 book.  THEM: i will take 2 basketablls and the hat. you can have the basketball and both books  YOU: no. it seems we're not going to agree.  THEM: how about i take 2 basketballs and you take the rest  YOU: okay i guess that will work.  THEM: deal.
Output:
Yes