#include<iostream>
using namespace std;
int main(){
int x,nr;
cin>>x;
x/=10;//ultima cifra scoasa
nr=0;
while(x!=0){
nr = nr*10+x%10;
x/=10;
}
nr/=10;//prima cifra
int cp = nr, inv=0;
while(nr!=0){
inv = inv *10 + nr%10;
nr/=10;
}
cout << (inv == cp ? "" : "nu ")<< "e palindrom";
}