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 man riding a wave on top of a surfboard', Sentence2: 'a photograph of a person sitting on a toilet seat'. Is the frequency of the word 'top' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'a small white bathroom with brown spotted tiles', Sentence2: 'a boy sits on top of a suitcase and between two other stacks of luggage'. Is the frequency of the word 'a' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'there is a bird that is standing in grass and water', Sentence2: 'a man puts his face close to a cat lying down on a bed'. Is the frequency of the word 'a' in two sentences equal?
Example Output:
No