#include <bits/stdc++.h>
using namespace std;

long long rev(long long num)
{
    int digit, rev = 0;
    do
    {
        digit = num % 10;
        rev = (rev * 10) + digit;
        num = num / 10;
    } while (num != 0);

    return rev;
}

long long deleteTrail(long long num)
{
    num = rev(num);
    num = rev(num);
    return num;
}

bool palindrom(long long num)
{
    return rev(num) == num;
}

int main()
{
    long long s;
    cin >> s;

    if (palindrom(deleteTrail(s)))
    {
        cout << "Yes";
    }
    else
    {
        cout << "No";
    }

    return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main ()
{
    int i,f=0,p=0;
    string s,s1;
    cin>>s;
    for(i=s.size()-1; i>=0; i--)
    {
        if(s[i]!='0')
            break;
         else if(s[i]=='0')
            p++;
    }
    for(i=1; i<=p; i++)
    {
        s1+='0';
    }
    //cout<<s1<<endl;
    for(i=0; i<s.size(); i++)
    {
        s1+=s[i];
    }
    //cout<<s1;
    for(i=0; i < s1.size() ; i++)
    {
        if(s1[i] != s1[s1.size()-i-1])
        {
            f = 1;
            break;
        }
    }
    if(f==0)
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;
    return 0 ;
}
