"use strict";

const main = arg => {
    const N = arg.split("\n")[0].split("");
    const R = N.slice(0, N.length);
    
    console.log(N == R.reverse() ? "Yes" : "No");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));