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

int main() {
    string ans = "No";
    string N;
    cin >> N;
    for (int i = 0; i <= 9; i++) {
        string Nt = string(i, '0') + N;
        if (Nt.size() % 2 == 1) Nt.erase(Nt.begin() + Nt.size() / 2);
        string s1 = Nt.substr(0, Nt.size() / 2);
        string s2 = Nt.substr(Nt.size() / 2);
        reverse(s2.begin(), s2.end());
        if (s1.compare(s2) == 0) ans = "Yes";
    }
    cout << ans << endl;
}
#include "bits/stdc++.h"
using namespace std;
int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    long long a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, m = 0, n = 0, p = 0, q = 0, mod = 998244353, pi = 3.1415926535;
    string s1,s2;
    char moji;
    
    cin >> s1;
    while(s1.size())
    {
        if(s1.back()=='0')
        s1.pop_back();
      else 
        break;
    }
    s2=s1;
    reverse(s1.begin(),s1.end());
    cout << (s1==s2?"Yes":"No") << endl;
    return 0;
}