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: you can have the balls if i get everything else?  YOU: if i can have the balls and a hat i will give you everything else  THEM: that is very reasonable and so i see no need to negotiate further.  YOU: perfect! thank you!
Output:
Yes