const { count } = require("console");

function main(lines) {
  const S = s();

  const N = S.length;
  const ans =  isPalindrome(S)
    && isPalindrome(S.slice(0, (N-1)/2))
    && isPalindrome(S.slice((N+1)/2))
    ? 'Yes' : 'No';
  
  return ans;
}

function isPalindrome(s) {
  return s == s.split('').reverse().join('');
}



const lines = require("fs").readFileSync("/dev/stdin", "utf8").trim().split("\n");

let lineCount = 0;
const s = () => lines[lineCount++];
const n = () => Number(s());
const b = () => BigInt(s());
const sa = () => s().split(' ');
const na = () => sa().map(Number);
const ba = () => sa().map(BigInt);

const ans = main(lines);
console.log( ans );