function main(input) {
  var a = input[0];
  var b = input[0].split("").reverse().join("");
  console.log(a==b?"YES":"NO");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"))
