Saturday, January 4, 2020

CODE MARATHON round-3 q's Duration:30 min


"Little Authors" Slogan Writing Competition was organized for School students at Orchids Senior School. Any student who is creative and effective in communicating ideas in short, yet powerful about any instant topic can participate in the competition. The important guideline for the contest is that the Slogan should contain a string where the number of occurrences of some character in it is equal to the sum of the numbers of occurrences of other characters in the string.

Write a program to help the event organizers to determine whether the submitted Slogans adhere to the given condition.

Input Format:
First and only line of input contains one string S consisting of lowercase letters.

Output Format:
Output a single line containing "Yes"(without quotes) if the string satisfies the condition given above or "No"(without quotes) otherwise.
Refer sample input and output for formatting specifications.

Sample Input1:
acab
Sample Output1:
Yes

Sample Input2:
abc
Sample Output2:
No