def Palindrome(str):
    for i in range(0, int(len(str)/2)): 
        if str[i] != str[len(str)-i-1]:
            return False
    return True
s=(input("Enter a string:"))
ans = Palindrome(s)
 
if (ans):
    print("palindrome")
else:
    print("Not palindrome")
