function main(input){
    var N = Number(input);
    if(Math.floor(N/100)==N%10){
        console.log("Yes");
    }else{
        console.log("No");
    }
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));