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