#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
    string s;
    cin >> s;
 
    string s2 = s;
    reverse(s2.begin(), s2.end());
 
    if(s == s2){
        cout << "Yes";
        return 0;
    }
  
  	int index = 0;
    while(index<s2.size() && s2[index++] == '0'){
      s = "0" + s;
      s2 = s2 + "0";
      if(s == s2){
        cout<<"Yes";
        return 0;
      }
    }
 
    cout << "No";
}
#include<iostream>
#include<string>
using namespace std;
int ten(int num){
  int digit = 0;
  while(num!=0){
    num/=10;
    digit++;
  }
  return digit;
}

int main(void){
  int num;
  cin >> num;
  while(num > 0){
    if(num %10 == 0){
      num /= 10;
    }else{
      break;
    }
  }
  int num2 = 0;
  int digit = ten(num);
  if(digit % 2 == 0){
    while(num > num2){
      num2 = num2*10+num%10;
      num /= 10;
    }
  }else{
    for(int i = (digit-1)/2;i > 0;i--){
      num2 = num2*10+num%10;
      num /= 10;
    }
    num /= 10;
  }
  if(num == num2){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }

  return 0;
}
