/**
 * @param {String} input
 */
function Main(input){
	var inputs = input.split("\n")[0].split('');
	return (inputs[0] == inputs[2]) ? 'Yes' : 'No';
}
console.log(Main(require("fs").readFileSync("/dev/stdin", "utf8")));