#include <iostream>
using namespace std;
int main()
{
int x,a,b,c,y;
cin>>x;
a=x/100;
b=x/10%10;
c=x%10;
y=c*100+b*10+a;
if(x==y)
{
cout<<"Yes";
}else
{
cout<<"No";
}
return 0;
}