def isPalindrome(word):
 
    word = word.lower()
 
    l = len(word)

    if l < 2:
        return True
    elif word[0] == word[l - 1]:
 
        return isPalindrome(word[1: l - 1])
    else:
        return False

word= input("Enter a word  ")

ans = isPalindrome(word)
 
if ans: 
    print("The word is a palindrome")
 
else:
    print("The word is not a palindrome")
    
