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