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 flock of birds some on the ground others are perched on a park bench', Sentence2: 'a black and white photo of a person with a frisbee'. Is the frequency of the word 'of' in two sentences equal?
Example Output: Yes

Example Input: Sentence1: 'cow looking over its enclosure while in an open pasture', Sentence2: 'a plate with a pizza and vegetables on it'. Is the frequency of the word 'over' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'a couple sits in separate parts of the bedroom working on their laptops', Sentence2: 'a bamboo basket sitting on top of a bicycles handle bars'. Is the frequency of the word 'of' in two sentences equal?
Example Output:
Yes