<script>
  var x= parseInt(promt("Enter a Number"));
  var y= (x/10-Math.Floor(x/10))*10;
  var z= (((x-y)/100)-Math.Floor((x-y)/100))*10;
  var w= (((x-10*z-y)/1000)-Math.Floor(x-10*z-y/1000))*10;

  if(y== w){
    alert("Yes");
  }else{
    alert("No");
  }
    