
#include<stdio.h>
int main()
{
    int i,n,a,c;
    scanf("%d",&n);
        a=n/100;
        c=n%10;
        if(a==c)
            printf("Yes");
        else
            printf("No");

    return 0;
}