process.stdin.resume();
process.stdin.setEncoding('utf8');

var g_input = '';
process.stdin.on('data', function(chunk) {
    g_input += chunk;
});

process.stdin.on('end', function() {
    main(g_input.split(/\r?\n/));
});

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