//check number is palindrome or not.
//not getting desired result
import java.util.Scanner;
class Palindrome
{
public static void main(String z[])
{
int rev=0;int a;
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int temp=n;
while(n>0)
{
a=n%10;
n=n/10;
rev=rev*10+a;
}
if(n==rev)
{
System.out.println("pallindrome");
}
else{
System.out.println("not a pallindrome");
}
}
}