// 2020/03/22 21:18 - 21:30
// 
function Main(input) {
	var len = input.length;
	var tgt = parseInt(len / 2);
	var establishment = true;

	for(var i = 0; i < tgt && establishment; i++) {
		var left = input[i];
		var right = input[len - i - 1];
		if(left != right) {
			establishment = false;
		}
	}

	tgt = parseInt((len - 1) / 2) - 1;
	for(var i = 0; i < tgt && establishment; i++) {
		var left = input[i];
		var right = input[tgt - i];
		if(left != right) {
			establishment = false;
		}
	}

	var init = parseInt((len + 3) / 2) - 1;
	tgt = len - init;
	for(var i = 0; i < tgt && establishment; i++) {
		var left = input[init + i];
		var right = input[len - i - 1];
		if(left != right) {
			establishment = false;
		}
	}

	var out = (establishment) ? "Yes" : "No";
	console.log(out);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));