Given a negotiation between two participants, answer 'Yes' if both participants agree to the deal, otherwise answer 'No'.

Example Input: THEM: i would like the ball and one hat please YOU: i need the ball, but you can have both hats if i get the books THEM: i need the ball also. you can have everything else, if i can have the ball YOU: i need the ball and at least one book to be worthwhile THEM: i have to have the ball, or i can't make a deal YOU: then we're at an impasse THEM: yes i guess so YOU: no deal THEM: no deal YOU: no deal.
Example Output: No

Example Input: THEM: i would like 2 balls, 2 hats and 1 book YOU: no. you can have the balls and 1 hat THEM: i can not have 1 book? YOU: no sorry i need both books THEM: you can have both books if i can have both balls and both hats YOU: how about i get both books and 1 hat? THEM: then i would like one book... YOU: sorry, no deal THEM: i get 2 balls, 1 hat 1 book YOU: no deal THEM: you can have both books and 1 hat YOU: deal.
Example Output: Yes

Example Input: THEM: i'd like the hat. YOU: okay THEM: did you want a ball? YOU: no. THEM: do you want 2 balls? YOU: honestly, my pictures have disappeared, so i need 3 of what's on top. THEM: i can trade 2 books.
Example Output:
No