'use strict'

function main(s) {

  const str = s.split('\n')[0];
  const rev = str.split('').reverse().join('');

  const ans = (str === rev) ? 'Yes' : 'No';
  
  console.log(ans);
}

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