function Main(input) {
	var InLength = input.length;
  	var flag="Yes";
	for(i=0;i<InLength/2;i++){
      if(input[i]!==input[InLength-i-1]){
        flag = "No";
      }
    }
  console.log(flag);
}
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));