#include <bits/stdc++.h>
void nop();
using namespace std;
const int inf = (int)1e9;
const long long infl = (long long)2e18;
const int mod = 1000000007;
int main() {
  int x;
  cin >> x;
  while (x % 10 == 0) {
    x /= 10;
  }
  string s = to_string(x);
  string t = s;
  reverse(t.begin(), t.end());
  bool ok = s == t;
  cout << (ok ? "YES" : "NO") << endl;
  return 0;
}
