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

Example Input: Sentence1: 'the two motorcycle officers have flags on their back', Sentence2: 'the two dogs are playing outside with a frisbee'. Is the frequency of the word 'the' in two sentences equal?
Example Output: Yes

Example Input: Sentence1: 'a cake being cut by people in the military', Sentence2: 'a picture of a kid that is on the ground'. Is the frequency of the word 'the' in two sentences equal?
Example Output: Yes

Example Input: Sentence1: 'several people riding surfboards on waves in the ocean', Sentence2: 'a flag flying with kites all around it'. Is the frequency of the word 'waves' in two sentences equal?
Example Output:
No