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

ll fact(ll n)
{
    ll f=1;
    for(int i=1;i<=n;i++){
        f*=i;
    }
    return f;
}

int main() {
    #ifndef ONLINE_JUDGE
    freopen("input.txt","r",stdin);
    freopen("output.txt","w",stdout);
    #endif
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);cout.tie(NULL);
    
    string s;
    cin>>s;
    int n=s.size();
    int flag=0,no=0;
    int l=0,r=n-1;
    while(l<r){
        if(s[l]!=s[r] && flag==0){
            if(s[r]=='0'){
                r--;
                continue;
            }
            else{
                no=1;
                break;
            }
        }
        else if(s[l]==s[r]){
            flag=1;
            l++;r--;
        }
        else if(s[l]!=s[r]){
            no=1;
            break;
        }
    }
    if(no==1) cout<<"No";
    else cout<<"Yes";
}
#include<bits/stdc++.h>
#define inf 0x3f3f3f3f
typedef unsigned long long ull;
typedef long long ll;
#define rep(i,l,r) for(int i=l;i<=r;i++)
#define nep(i,r,l) for(int i=r;i>=l;i--)
void sc(int &x){scanf("%d",&x);}
void sc(int &x,int &y){scanf("%d%d",&x,&y);}
void sc(int &x,int &y,int &z){scanf("%d%d%d",&x,&y,&z);}
void sc(ll &x){scanf("%lld",&x);}
void sc(ll &x,ll &y){scanf("%lld%lld",&x,&y);}
void sc(ll &x,ll &y,ll &z){scanf("%lld%lld%lld",&x,&y,&z);}
void sc(char *x){scanf("%s",x);}
void sc(char *x,char *y){scanf("%s%s",x,y);}
void sc(char *x,char *y,char *z){scanf("%s%s%s",x,y,z);}
void out(int x){printf("%d\n",x);}
void out(ll x){printf("%lld\n",x);}
void out(int x,int y){printf("%d %d\n",x,y);}
void out(ll x,ll y){printf("%lld %lld\n",x,y);}
void out(int x,int y,int z){printf("%d %d %d\n",x,y,z);}
void out(ll x,ll y,ll z){printf("%lld %lld %lld\n",x,y,z);}
using namespace std;
const int N=5e3+5;
bool judge(int x)
{
    if(x==0) return true;
    vector<int>ans;
    while(x) ans.push_back(x%10),x/=10;
    for(int l=0,r=ans.size()-1;l<=r;l++,r--)
        if(ans[l]!=ans[r]) return false;
    return true;
}
int main()
{
    //freopen("1.in","r",stdin);freopen("1.out","w",stdout);
    int n;cin>>n;
    while(n&&n%10==0) n/=10;
    if(judge(n)) printf("Yes\n");
    else printf("No\n");
}
