#include <stdio.h>
int main()
{
   int x,n,sum=0;
   scanf("%d",&x);
   n=x;
   while (x!= 0)
    {
        sum=sum*10+x%10;
        x /=10;
        printf("n=%d,x=%d,sum=%d\n",n,x,sum);
    }
    if (n==sum)
    printf("Yes\n");
    else
    printf("No\n");
   return 0;
}