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 the book and 2 balls or the book and 2 hats.  YOU: that doesnt work for me i can offer you 1 hat  THEM: are you serious? how is that a legitmate offer?  YOU: were negoiating.........  THEM: so actually negoitate. 1 hat is a joke. i can do the two offers above or you can take the book and i get the rest.  YOU: are you serious? how is that a legitimate offer?  THEM: that gives me 5 points. the book is worth 5 for me. i don't deal for less. \  YOU: 1 book is a joke  THEM: okay. so then i'll take the book and 2 other items and you get the rest. still nets me a decent number of points.  YOU: no deal i cannot offer you that that would giv eme 5 points i dont deal for less.  THEM: then no deal.
Output:
No