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;
		}
	}

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