#include<bits/stdc++.h>
#define ll long long
#define nl "\n"
#define fast ios_base::sync_with_stdio(false),cin.tie(NULL),cout.tie(NULL)
#define pcase printf("Case %d: ",ca)
int ca=1;
using namespace std;
int main(){
fast;
{

	string n;
	cin>>n;
	string x="";
	string y;
	int s = n.size();
	int ans = 1;
	int i = 0, j = s-1, f = 0, l = 0;
	while(n[i]=='0'){
		i++;
		f++;
		if(i>s){
            break;
		}

	}
	while(n[j]=='0' && j>=0){
		j--;
		l++;
		if(j==0){
            break;
		}

	}
	for(int b = i;b<=j;b++){

			x+=n[b];

	}
		y = x;
		reverse(y.begin(),y.end());

		if(x==y && l>=f){
			cout<<"Yes"<<nl;
		}else{
			cout<<"No"<<nl;
		}
}
	}

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>

using namespace std;

long long int N;

int main(void) {

	cin >> N;

	if (N == 0) { cout << "Yes" << endl; return 0; }

	while (N % 10 == 0) { N /= 10; }

	vector<int> V;

	long long int K = N;
	while (K > 0) { V.push_back(K % 10); K /= 10; }

	vector<int> W;
	for (int i = (int)V.size() - 1; i >= 0;i--) { W.push_back(V[i]); }

	//for (auto y : V) { cout << " " << y; }cout << endl;
	//for (auto y : W) { cout << " " << y; }cout << endl;

	if (V == W) { cout << "Yes" << endl; }
	else { cout << "No" << endl; }
	return 0;
}
