#include<bits/stdc++.h>
using namespace std;
#define light ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define ll long long
#define pb push_back
#define cases() ll t;cin>>t;while(t--)
#define all(c) c.begin(),c.end()
#define PI 3.14159265358979323846
const ll MAX = 2e5+5;
const ll INF = 1e18;
const ll MOD = 1e9+7;

int check(string a,int n)
{
    int i,j;
    for(i=0;i<n;i++)
    {
        if(a[i]!=a[n-1-i])
            return 0;
    }
    return 1;
}

int main()
{
    int n,i,j,k,l,p,q,x,y;
    cin >> l;
    string a = to_string(l);n = a.size();
    if(check(a,n)==1)
    {
        cout << "Yes";
        return 0;
    }
    string b;p = 0;
    for(i=n-1;i>=0;i--)
    {
        if(p==0)
        {
            if(a[i]!='0')
            {
                p++;
                b+=a[i];
            }
        }
        else
            b+=a[i];
    }
    reverse(b.begin(),b.end());
    if(check(b,b.size())==1)
    {
        cout << "Yes";
        return 0;
    }
    else
        cout << "No";
}
#include <iostream>
#include <bits/stdc++.h>

using namespace std;

#define ll long long int
#define ld long double
#define MAX 100010
#define MOD 1000000007
#define INF 1e15
#define fast ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define pi 3.14159265358979323846
#define endl "\n"
#define coutflg if(flg){cout << "Yes\n";}else{cout << "No\n";}
#define coutyes cout << "Yes\n";
#define coutno cout << "No\n";
#define flush fflush(stdout);
#define fixedprec cout << fixed << setprecision(18);

void solve(){
    string a;
    cin >> a;
    int flg = 1;
    ll n = a.size();
    ll l = 0;
    ll r = a.size()-1;
    while(l<n && a[l]=='0'){
        l++;
    }
    while(r>=0 && a[r]=='0'){
        r--;
    }
    while(l<=r){
        if(a[l]!=a[r]){
            flg = 0;
            break;
        }
        else{
            l++;
            r--;
        }
    }
    coutflg;
}

int main(){

    fast
    ll t,q;
    q = 1;
    // cin >> q;
    for(t=1;t<=q;t++){
        // cout << "Case #" << t << ": ";
        solve();
    }
}