#include<bits/stdc++.h> using namespace std; int main(){ long long a; cin>>a; if(a%100==(a-a%100)/100){ cout<<"YES"; }else{ cout<<"NO"; } return 0; }