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 man is leaning over in the snow and casting a shadow', Sentence2: 'a person is holding a remote control in their hand'. Is the frequency of the word 'the' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'a man standing by a table with figurines on it', Sentence2: 'two people dressed in costume advertising while two others ride a horse'. Is the frequency of the word 'a' in two sentences equal?
Example Output:
No