function main(input) {
  var S = input[0];
  var N = S.length;

  var resCount = 0;
  if(palindrome(N, S)){
  	resCount +=1;
  };
  
  var headS = S.slice(0, (N-1)/2);
  if(palindrome(headS.length, headS)){
    resCount +=1;
  }
  
  var TailS = S.slice((N +3)/2 -1, N);
  if(palindrome(TailS.length, TailS)){
    resCount +=1;
  }
  
  if(resCount === 3){
  	console.log('Yes');
  }else{
  	console.log('No');
  }  
}

function palindrome(N, S){
  
    var mid = Math.floor(N/2);
	for ( var i = 0; i < mid; i++ ) {
    if (S[i] !== S[N - 1 - i]) {
      return false;
    }
  }

  return true;
}

main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"));