function main(input) {
  const N = input;
  let M = N.split('').reverse().join('');
  
  if (N == M) {
    console.log('Yes');
  } else {
    console.log('No');
  }
}

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