#include <iostream>
using namespace std;
int main(){
  string n;
  cin >> n;

  int N = n.size();
  for(int i=0;i<N;i++){
    bool flag = true;
    for(int j=0;j<n.size()/2;j++){
      if(n[j] != n[n.size()-j-1]){
        flag = false;
        break;
      }
    }
    if(flag){
      cout << "Yes\n";
      return 0;
    }

    n = '0'+n;
  }

  cout << "No\n";
}
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define ff first
#define ss second
int main(void){
    // Your code here!
 ios_base::sync_with_stdio(false);
 cin.tie(NULL);
 int n;
 string s,r;
 cin >> n;
 while(n%10==0 && n>0)
 n/=10;
 s=to_string(n);
 r=s;
 reverse(r.begin(),r.end());
 cout << (s==r ? "Yes" : "No");
 return 0;
}