#include<iostream> using namespace std; int main() { int y; cin>>y; if(y/100==y%100) cout<<"YES"; else cout<<"NO"; return 0; }