function Main(S = '') {
	if (!checkReverseEq(S)) {
		console.log('No');
	} else {
		const sizeS = S.length;
		const littleS = S.substr(sizeS + 2);
		if (checkReverseEq(littleS)) {
			console.log('Yes');
		} else {
			console.log('No');
		}
	}
}

const checkReverseEq = (S) => {
	const reverseS = S.split('').reverse().join('');
	return S === reverseS;
};

Main(require('fs').readFileSync('/dev/stdin', 'utf8'));
