#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
bool f(string s) {
  int n = s.size();
  int i = 0;
  int j = n - 1;
  while (i <= j) {
    if (s[i] != s[j]) return false;
    i++;
    j--;
  }
  return true;
}
int main() {
  string s;
  cin >> s;
  int n = s.size();
  string temp = "";
  for (int i = 0; i <= n; i++) {
    if (f(temp + s)) {
      cout << "YES\n";
      return 0;
    }
    temp += "0";
  }
  cout << "NO\n";
}
