Score : $200$ points
Let $w$ be a string consisting of lowercase letters. We will call $w$ beautiful if the following condition is satisfied:
You are given the string $w$. Determine if $w$ is beautiful.
a-z).The input is given from Standard Input in the following format:
$w$
Print Yes if $w$ is beautiful. Print No otherwise.
abaccaba
Yes
a occurs four times, b occurs twice, c occurs twice and the other letters occur zero times.
hthth
No