function Main(input) {
    input = input.split("\n");
    let n = input[0];
    if (n[0] == n[2]) {
        console.log('Yes');
    }
    else {
        console.log('No');
    }
}

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