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

Example Input: THEM: how about you take the hat and balls and i will take the books?  YOU: i can't accept that deal. if i can have the books you can have the hat and the balls... would that work for you?  THEM: the books are the only things of value to me  YOU: same as me. the only other deal i would be willing to make is if we can split the difference and i can have one of each  THEM: okay can i have 1 book and the balls?  YOU: you can have one ball and the book  THEM: deal  YOU: okay thank you!
Example Output: Yes

Example Input: THEM: what if i take the books and we split up the hat and balls  YOU: that's actually the same offer i wanted to propose to you. i assume our values are similar. how about we split it right down the middle? we each get a book and split the rest?  THEM: actually i wanted both books and will split the rest however you want  YOU: i understand you want both books, but i won't part with both. i'll take 1 book, two balls ; you take 1 book 1 hat 1 ball.  THEM: that won't work for me. i will only take just 1 book if i also get a hat and 2 balls  YOU: again, i'm going for fair or no deal. 3 items each, 1 of them being a book.  THEM: in that case i want 1 book and 2 balls  YOU: i can atleast agree to that. deal  THEM: done.
Example Output: Yes

Example Input: THEM: hello, may i have the hats and books and you can have the balls?  YOU: i want one book to go with the balls  THEM: okay deal, 1 book 3 balls for you, 1 book 2 hats for me.
Example Output:
Yes

