#include <bits/stdc++.h>
using namespace std;
int main() {
  string x;
  cin >> x;
  long long cnt = 0;
  bool ok = true;
  long long k = x.length() - 1;
  for (int i = 0; i <= x.length() / 2; i++) {
    if (x[k] == x[i]) {
      k--;
    } else {
      ok = false;
      break;
    }
  }
  if (ok == false) {
    ok = true;
    for (int i = x.length() - 1; x[i] == '0'; i--) {
      cnt++;
    }
    for (int i = 0; i < cnt; i++) {
      x = "0" + x;
    }
    k = x.length() - 1;
    for (int i = 0; i <= x.length() / 2; i++) {
      if (x[k] == x[i]) {
        k--;
      } else {
        ok = false;
        break;
      }
    }
  }
  if (ok) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
