Definition: Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.
Input: THEM: how about 2 books and a hat for you and i will take the rest  YOU: no thanks, i'd rather have the basketballs only, and you can have everything else.  THEM: how about 1 basketball and 2 books for me  YOU: no, how about 2 basketballs for me, and you can have 3 books and the hat  THEM: no can't do it  YOU: i'll take 2 basketballs and the hat  THEM: i need at least one of the basketballs and 2 books  YOU: no can do.  THEM: we are at an impass, i can do 1 basketball, 1 hat and 1 book  YOU: sure.
Output:
Yes