"use strict"
function main(arg) {
    var b =  arg.trim().split(' ')[0];

    if(b.length %2 == 0){
        console.log("No");
        return;
    }

    var len = parseInt(b.length/2);


    var k = b.length;
   var i= 0;
    for(i=0; i <= len ; i++){
        var f = b.substr(i,1);
        var g = b.substr(k -1,1);
           

       if(f != g){
           console.log("No");
           return;
       }
        k--;
    }


     console.log("Yes");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
