#include <bits/stdc++.h>

using namespace std;

int main(){
    string S;
    cin >> S;
    for (int i = 0; i < 12; i++){
        auto T = S;
        reverse(T.begin(), T.end());
        if (S == T){
            puts("Yes");
            return 0;
        }
        S = '0' + S;
    }

    puts("No");
}
#include<bits/stdc++.h>
using namespace std;
#define all(x) x.begin(), x.end()
#define pb push_back
int main(){
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
    int n; cin>>n;
	auto f = [&](string s){
	string t= s;
	reverse(all(t));
	return s==t;
	};

	string s=to_string(n);
    if(f('0'+s) || f("00"+s) || f("000" + s) || f(s)|| f("0000"+s) || f("00000"+s) || f("000000"+s) ||f("0000000"+s)
       ||f("00000000"+s)||f("000000000"+s)){

        cout<<"Yes";
        return 0;
    }
    cout<<"No";
	return 0;

}
