#include <bits/stdc++.h>
using namespace std;
bool ok(string s) {
  string t = s;
  reverse(t.begin(), t.end());
  return (s == t);
}
int main() {
  string s;
  cin >> s;
  int n = s.size();
  reverse(s.begin(), s.end());
  for (int i = 0; i <= n; i++) {
    if (i > 0) s += '0';
    if (ok(s)) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
