#include <iterator>
#include <algorithm>
#include <list>
#include <deque>
#include <string>
#include <iostream>
using namespace std;
int main(){
    string str,str2;
    cin >> str;
    for (int i = str.size()-1;i >=0;i--){
        if (str[i] == '0') str.erase(i,1);
        else i = -1;
    }
    str2 =str;
    reverse(str.begin(),str.end());
    if (str == str2) cout << "Yes";
    else cout << "No";
}

#include <iostream>

using namespace std;


int main(){
  int n; cin >> n;
  if (n==0){
    cout << "Yes\n";
    return 0;
  }
  while (n%10==0) n/=10;
  int n_inv=0,t=n;
  while (t>0) {
    n_inv = (t%10)+(n_inv<<3)+(n_inv<<1);
    t/=10;
  }
  cout << (n==n_inv?"Yes\n":"No\n");
  return 0;
}