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: can i get the books and the hat?  YOU: you get hat i get rest?  THEM: how about i take the books and you can have the rest?  YOU: deal.
Output:
Yes