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 white truck travelling on a street pass homes', Sentence2: 'a paper plate with a hot dog and french fries'. Is the frequency of the word 'a' in two sentences equal?
Example Output: Yes

Example Input: Sentence1: 'a woman brushing her teeth and a towel on her head', Sentence2: 'a man walking in front of a grand building'. Is the frequency of the word 'building' in two sentences equal?
Example Output: 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 'on' in two sentences equal?
Example Output:
Yes