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'll take the 2 hats and 2 balls. YOU: i would like 2 hats and the book THEM: i need at least one hat. YOU: ok how about you get 1 hat, and i will take the rest? THEM: one hat and 2 balls YOU: 1 hat and 1 ball for you?
Output:
Yes