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 brown and white cake a candle and a girl', Sentence2: 'a smiling person taking an elephant ride near the handler'. Is the frequency of the word 'a' 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 partially eaten pizza with empty plate in foreground', Sentence2: 'a young woman is in position to throw a red frisbee'. Is the frequency of the word 'in' in two sentences equal?
Example Output:
Yes