function main(input) {
  input=input.trim();
  if(input.substr(0,1)==input.substr(2,1)){
    console.log("Yes");
  }else{
    console.log("No");
  }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));