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'd like 1 of each please.  YOU: how about you give me the books and take the rest?  THEM: i'll take 1 hat, and 1 book and you can have the rest.  YOU: is that your final offer? that is not that great for me.  THEM: sorry, yes, i'm not working with much.  YOU: ok, i agree.  THEM: okay, thanks.
Output:
Yes