include <bits/stdc++.h>

using namespace std;

int main()
{
int n;
cin>>n;
if(n<0)
n = -n;
string s = to_string(n);
string s1(s);
reverse(s.begin(),s.end());
if(s == s1)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
return 0;
}