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 room containing a television and a lounge chair with books on it', Sentence2: 'a cat sitting on top of a piece of electronic equipment'. Is the frequency of the word 'on' in two sentences equal?
Example Output: Yes

Example Input: Sentence1: 'a baby bird by itself in a nest made from straw', Sentence2: 'three sheep one grazing on grass while a dog stands behind them'. Is the frequency of the word 'by' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'a man flying through the air on a  skateboard', Sentence2: 'a red bench sitting underneath a widow against wall'. Is the frequency of the word 'a' in two sentences equal?
Example Output:
Yes