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

bool palindrome (string s) {
    string t = s;
    reverse(t.begin(), t.end());
    return t == s;
}

int main() {
    string S, T, s;
    cin >> S;
    T = S;
    reverse(T.begin(), T.end());
    int n = stoi(T);
    string t = to_string(n);
    if (palindrome(t)) cout << "Yes" << endl;
    else cout << "No" << endl;
}
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using ull=unsigned long long;
#define rep(i,n) for(int i=0; i<(n); i++)



int main(){
  string S; cin>>S;
  if(S=="0"){
    cout<<"Yes\n";
  }
  else{
    string SS = S;
    while(SS.back()=='0') SS.pop_back();
    string rS = SS;
    reverse(rS.begin(),rS.end());
    if(SS==rS) cout<<"Yes\n";
    else cout<<"No\n";
  }
  return 0;
}