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 terrier sits on a messy bed in front of the window', Sentence2: 'a mesh fence with the design of a cat incorporated into it'. Is the frequency of the word 'the' in two sentences equal?
Example Output: Yes

Example Input: Sentence1: 'a man flying through the air while riding a skateboard', Sentence2: 'a man taking a stack of clothes off of a bed'. Is the frequency of the word 'bed' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'a man laying on a pile of snow next to a snowboard inside of a building', Sentence2: 'a woman stands on the grass with a frisbee as her dog patiently waits'. Is the frequency of the word 'dog' in two sentences equal?
Example Output:
No