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 2 hats and a basketball?  YOU: i can give you 1 hat and 2 books for 1 ball.  THEM: you only want 1 ball?  YOU: unless you are willing to give me both balls  THEM: so in total which items do you want? i'm confused.  YOU: what do you want for both balls?  THEM: i can settle with both books and a hat  YOU: ok i will give you 2 books and 1 hat and you give me 2 balls? deal  THEM: ok, sounds good.
Output:
No