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: you can have the hats if i can have the book and ball  YOU: can you trade a hat or two for the book?  THEM: the book is too valuable to me to give up  YOU: trade a hat for the ball?  THEM: sure  YOU: so 3 hats and a ball for me, 1 hat 1 book for you?  THEM: yes.
Output:
Yes