#include <bits/stdc++.h>
using namespace std;
int main() {
  int zero = 0;
  int x, rev = 0;
  cin >> x;
  for (int i = x; i != 0 && i % 10 == 0; i /= 10) {
    ++zero;
  }
  if (zero == 0) {
    for (int k = x; k != 0; k /= 10) {
      int b;
      b = k % 10;
      rev = (rev * 10) + b;
    }
  } else {
    for (int k = x; k != 0; k /= 10) {
      int b;
      b = k % 10;
      rev = (rev * 10) + b;
    }
    while (zero != 0) {
      rev = rev * 10;
      zero = zero - 1;
    }
  }
  if (x == rev)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
