In this task, answer 'Yes' if the frequency of the given word in the two sentences is equal, else answer 'No'.

Example Input: Sentence1: 'a cat laying on its arm looking at a mirror', Sentence2: 'a beautiful woman holding a tennis racquet on a tennis court'. Is the frequency of the word 'a' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'man wearing a false beard along with female friend cutting cake together', Sentence2: 'a polar bear taking a swim in the water'. Is the frequency of the word 'together' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'a person sitting at an outdoor table with food and other items on the table', Sentence2: 'a man sitting on a couch next to a dog'. Is the frequency of the word 'on' in two sentences equal?
Example Output:
Yes