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: may i have 3 balls and a hat?  YOU: i need 1 ball, 2 hats and the book if you take 3 balls  THEM: ok  YOU: i was wrong, i have to have 2 balls and the book  THEM: so 2 balls and the book for 2 balls and 2 hats?  YOU: i need two balls and the book  THEM: ok.
Output:
Yes