function main(input) {
   input = input.trim();
  const a = input.split("").map(Number);
  const b = a.reverse();
 
 console.log(a[0]==b[0]?"Yes":"No");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));