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

Example Input: Sentence1: 'people on a car driving past elephants and a hippo', Sentence2: 'people gathered on the street dressed in costumes next to a rainbow sheet'. Is the frequency of the word 'on' in two sentences equal?
Example Output: Yes

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 person with ripped jeans on riding on a skateboard', Sentence2: 'a large truck with huge tires made for going through sand dunes'. Is the frequency of the word 'a' in two sentences equal?
Example Output:
No