#include<stdio.h>
int main()
{
  int N,a,b,c;
  scanf("%d",&N);
  if(100<=N<=999)
  {
     a=N/100;
	 b=(N-a*100)/10;
	 c=N-a*100-b*10;
	 if(a==c)
	 {
	   printf("Yes\n");
	 }
	 else
	 {
	   printf("No\n");
	 }
  }
}
