bool IsPalindrome(int n)
{
if (n == 0)return true;
if (n <0)return false;
if (n%10 == 0) return false;
int t = 0;
while(n > t)
{
t = t*10 + n%10;
n/=10;
}
if (t>n) return t/10 == n;
return true;
}
#include <iostream>
using namespace std;
int main(int argc, char** argv)
{
int v;
while( cin>>v)
cout<< v << " is" << (IsPalindrome(v)?"":" not") << " Palindrome Number."<<endl;
return 0;
}