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 girl wearing a hat and dress while holding a purse that looks like a clock', Sentence2: 'a train going through town via railroad'. Is the frequency of the word 'railroad' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'a can is sitting on top of a dog', Sentence2: 'a dog sitting on a bed in a sweater with a indifferent look'. Is the frequency of the word 'dog' in two sentences equal?
Example Output: Yes

Example Input: Sentence1: 'a big metal clock on the side of a building', Sentence2: 'a large train with windows and some graffiti on the side'. Is the frequency of the word 'a' in two sentences equal?
Example Output:
No