"use strict";
const Main = (input) =>{
   let xs = input.trim().split('');
   let len = Math.floor(xs.length/2);
   let len1 = xs.length;
   
   let ans =[];
   for(let i=0; i<len; i++){
      ans.push(xs[i]);
   } 
   
   let ans1 ='';
   for(let i=len1-1; i>len; i--){
      ans1+=xs[i];
   }
   let len2 = ans.length;
   let ans2 =''; 
   for(let i=len2-1; i>=0; i--){
     ans2+=ans[i];
   }
   let ans3='';
   for(let i=0; i<len; i++){
      ans3+=ans[i];
   } 
   //console.log(ans3)
   if(ans3==ans2){
     console.log('Yes');
   }else{
     console.log('No');
   }
}
Main(require('fs').readFileSync('/dev/stdin','utf8'));