def is_palindrome_recursive(word):
if len(word) <= 1:
return True
elif word[0] != word[-1]:
return False
else:
return is_palindrome_recursive(word[1:-1])
word = input("Enter a word: ")
if is_palindrome_recursive(word):
print(f"{word} is a palindrome.")
else:
print(f"{word} is not a palindrome.")