const inputs = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n');

const input = inputs[0];

const a = (input.length - 1) / 2;

const b = input.substring(0, a);
const c = input.substring(input.length - a, input.length);

if (isPalindrome(input) && isPalindrome(b) && isPalindrome(c)) {
  console.log('Yes');
} else {
  console.log('No');
}

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