#include<iostream>
using namespace std;
int main()
{ unsigned n, copie,invers;
invers=0;
cout<<"n=";cin>>n;
copie=n;
while(n!=0)
{ invers=invers*10+n%10;
n=n/10;
}
if(invers==copie)
{ cout<<"n e palindrom";
}
else
{ cout<<"n nu e palindrom";
}
return 0;
}