#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x, y, z, p = 0LL, i, a, c = 0;
  cin >> x;
  while (x % 10 == 0) {
    x = x / 10;
  }
  y = x;
  a = x;
  while (a != 0) {
    c++;
    a /= 10;
  }
  i = c - 1;
  while (y != 0) {
    z = y % 10;
    p = p + (long long)z * (long long)pow(10, i);
    y /= 10;
    i--;
  }
  if (p == x)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
