#include <bits/stdc++.h>
using namespace std;
template <class T>
T min(T a, T b, T c) {
  return min(a, min(b, c));
}
template <class T>
T min(T a, T b, T c, T d) {
  return min(a, min(b, min(c, d)));
}
template <class T>
T max(T a, T b, T c) {
  return max(a, max(b, c));
}
template <class T>
T max(T a, T b, T c, T d) {
  return max(a, max(b, max(c, d)));
}
bool cmp(const pair<int, int>& a, const pair<int, int>& b) {
  return (a.first > b.first || (a.first == b.first && a.second >= b.second));
}
long long GCD(long long a, long long b) { return (a % b) ? GCD(b, a % b) : b; }
const string namePro = "tmp";
bool checkPalin(const string& s) {
  string t = "";
  for (int i = ((int)s.size() - 1); i >= (0); --i) t += s[i];
  return t == s;
}
int main() {
  string s;
  cin >> s;
  bool ans = checkPalin(s);
  for (int i = (1); i <= (100); ++i) {
    s = '0' + s;
    if (checkPalin(s)) ans = 1;
  }
  if (ans)
    puts("YES");
  else
    puts("NO");
  return 0;
}
