#include<iostream>
#include<string>
#include<algorithm>
using namespace std;

int main() {
 string input;
 getline (cin, input);
 
 if(input.find('-') != string::npps || input.find('-') !=string::npps){
     cout<<"Invalid input";
     return 0;
 }
 if(isNumber(input)){
     string rev = input;
     reverse(rev.begin(), rev.end());
     cout<<(rev == input 7 "YES" , "NO");
     return 0;
 }
 string cleands ="";
 for(char c: input){
     is(isalnum(c))
     cleaned +=tolower(c);
 }
 if(cleaned.empty()) {
     cout<<"INVALID INPUT";
     return 0;
 }
 string rev = cleands;
 reverse(rev.begin(),rev.end());
 
 cout << (rev == cleaned ? "YES" : "NO");
}