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 can is sitting on top of a dog', Sentence2: 'a dog sitting on a bed in a sweater with a indifferent look'. Is the frequency of the word 'dog' in two sentences equal?
Example Output: Yes

Example Input: Sentence1: 'an old clock tower on a clear sunny day', Sentence2: 'two people on skis soaring over the water'. Is the frequency of the word 'skis' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'two women about to take a ride on an elephant', Sentence2: 'the two motorcycle officers have flags on their back'. Is the frequency of the word 'two' in two sentences equal?
Example Output:
Yes