In this task, answer 'Yes' if the frequency of the given word in the two sentences is equal, else answer 'No'.

Example Input: Sentence1: 'in an old black and white photo men are riding horses', Sentence2: 'a person is sleeping on one side of the bed'. Is the frequency of the word 'person' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'an older gentleman eating lunch with a younger woman', Sentence2: 'a wooden park bench placed up against a tree'. Is the frequency of the word 'eating' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'a lot of plants and greenery with a train in the background', Sentence2: 'a woman sitting by a deep dish pizza with pepperonis'. Is the frequency of the word 'a' in two sentences equal?
Example Output:
Yes