import Data.Bool (bool) solve cs = take l cs == drop l cs where l = length cs `div` 2 main = getLine >>= putStrLn . bool "NO" "YES" . solve