#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, i, t, x;
  cin >> m;
  n = m;
  t = 0;
  while (n % 10 == 0) {
    n = n / 10;
  }
  m = n;
  while (n > 0) {
    x = n % 10;
    t = t * 10 + x;
    n = n / 10;
  }
  if (t == m)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
