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 stop sign under a street lamp is shining at night', Sentence2: 'a young man poses for a camera while wearing a tie but no shirt'. Is the frequency of the word 'shirt' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'a train has graffiti and windows on it', Sentence2: 'a herd of elephants traveling together on a dirt pasture'. Is the frequency of the word 'on' in two sentences equal?
Example Output: Yes

Example Input: Sentence1: 'a stop sign that has been written on with white ink', Sentence2: 'a man and his dog on the couch with a laptop computer'. Is the frequency of the word 'a' in two sentences equal?
Example Output:
No