#include <bits/stdc++.h>
using namespace std;

int main() {
	ios_base::sync_with_stdio(false);cout.tie(NULL);cin.tie(NULL);
	string N;
	getline(cin, N);
	string Nr = N;
	reverse(Nr.begin(), Nr.end());
	//cout << N << " "<< Nr << "\n";
	int i = 0;
	while (Nr[i] == '0') {
		i++;
	}
	//cout << i;
	int chk = 1;
	for (int j = 0; i < Nr.length(); i++, j++) {
		if (Nr[i] != N[j]) {
			chk = 0;
			break;
		}
	}
	if (chk) cout << "Yes";
	else cout << "No";
}



#include<iostream>
using namespace std;

int main(){
  long long N, NN;
  cin>>N;
  NN = N;

  int n[11] = {0, 0,0,0,0,0,0,0,0,0,0}, a = 10;
  for(int i=0;i<=10;i++){
    n[i] = N%10;
    N /= 10;

    if(N<=0){
      a = i;
      break;
    }
  }
  if(n[0]==0){
    n[a+1] = 0;
    a++;
  }
  long long rN = 0, x = 1;

  for(int i=a;i>=0;i--){
    rN += n[i] * x;
    x *= 10;
  }
  for(int i=0;i<10;i++){
      if(NN == rN){
        cout<< "Yes";
        return 0;
      }
      rN *= 10;
      if(rN>1000000000)break;
  }
  cout<< "No";

  return 0;
}
