import Data.Bool
import Data.List

main :: IO ()
main = getLine >>= putStrLn . toAnswer . beautiful

toAnswer :: Bool -> String
toAnswer = bool "No" "Yes"

beautiful :: String -> Bool
beautiful = all even . map length . group . sort