def pali(a):
    temp=a
    rev=0
    while(a>0):
        dig=a%10
        rev=rev*10+dig
        a=a//10
    if(temp==rev):
        print("palindrom")
    else:
        print("not palindrom")
n=int(input("Enter the number"))
pali(n)