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 flock of birds some on the ground others are perched on a park bench', Sentence2: 'people placed in a picture with bears having a picnic'. Is the frequency of the word 'perched' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'a woman sitting at a table eating a piece of pizza', Sentence2: 'a small girl in a brown and pink dress and a brown cake with two candles'. Is the frequency of the word 'cake' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'a green slope is full of canoes up on the grass', Sentence2: 'a bride is standing on the grass under an umbrella'. Is the frequency of the word 'on' in two sentences equal?
Example Output:
Yes