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

Example Input: Sentence1: 'signs in front of a diner on the streets of a busy and compact road', Sentence2: 'a black and white photo of two women and a bbq'. Is the frequency of the word 'a' in two sentences equal?
Example Output: Yes

Example Input: Sentence1: 'a partially eaten pizza with empty plate in foreground', Sentence2: 'a woman hitting a tennis ball with a tennis racket'. Is the frequency of the word 'partially' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'black and white photograph of flowers in a vase', Sentence2: 'a dog sitting on a bed in a sweater with a indifferent look'. Is the frequency of the word 'in' in two sentences equal?
Example Output:
Yes