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 hats. you can have the rest.  YOU: how about i get books 1 hat 1 ball?  THEM: that leaves me with 3 points on my end. so no. what about you get 2 hats and i'll take the rest? that gives me 6 points. not sure what that is on your end.  YOU: i need books, so i guess i can live with your first offer - you take 3 hats and i'll take the rest.
Output:
Yes