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