#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using ll = long long;
using vl = vector<long long>;
using vi = vector<int>;

int main(){
    string s; cin >> s;
    string tmp1="",tmp2;
    int c = s.size();
    bool flag = false;
    for(int ix=0;ix<c;ix++){
        if(s.at(c-ix-1) != '0' || flag == true){
            tmp1 = s.at(c-ix-1) + tmp1;
            flag = true;
        }
    }
    //cout << tmp1 << endl;
    tmp2 = tmp1;
    reverse(tmp2.begin(),tmp2.end());
    if(tmp1 == tmp2){
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }
}
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
ll gcd(ll a, ll b){return b? gcd(b, a % b): a;}
ll quickpow(ll a, ll b){ll res = 1; while(b){if (b & 1) res = res * a; a = a * a; b >>= 1;} return res;}
// head

string s;

int main(void){
	ios::sync_with_stdio(false);
	cin.tie(0);
	cin >> s;
	for (auto it: s) {
		if (it == '.') break;
		cout << it;
	}
	cout << endl;
	return 0;
}
