import Data.List
main = do
  s <- getLine
  putStrLn $ palindrome s
  
palindrome str = if leftstr == rightstr then "Yes" else "No"
  where leftstr = take (div (length str) 2) str
        rightstr = drop ((div (length str) 2)+1) str
  