function main(input) {
  let N = input.toString();
  let M = N.split('').reverse().join('');
  
  N === M ? console.log('Yes') : console.log('No');
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));