#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, sm = "";
  cin >> s;
  int m = 0;
  for (int i = s.length() - 1; i >= 0; i--) {
    if (s[i] == '0') {
      m++;
    } else {
      break;
    }
  }
  for (int i = 0; i < s.length() - m; i++) {
    sm += s[i];
  }
  int x = sm.length() - 1;
  for (int i = 0; i < sm.length() / 2; i++) {
    if (sm[i] != sm[x]) {
      cout << "NO";
      return 0;
    }
    x--;
  }
  cout << "YES";
  return 0;
}
