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

Example Input: Sentence1: 'five ladies sitting together at a tale outside a restaurant', Sentence2: 'a game of tennis is being played on a court as an audience looks on'. Is the frequency of the word 'restaurant' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'in an old black and white photo men are riding horses', Sentence2: 'a person is sleeping on one side of the bed'. Is the frequency of the word 'person' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'a black cat standing on a wooden floor with a carrot in front', Sentence2: 'two dogs are wearing bonnets tied to a pole'. Is the frequency of the word 'wearing' in two sentences equal?
Example Output:
No