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: what do you need?  YOU: i would like balls and hats.  THEM: i need at least one hat or ball to stay afloat  YOU: so can i have both balls and one hat then?  THEM: sounds good.
Output:
Yes