n = input("Enter a word: ") if n == n[::-1]: print(n, "is a palindrome") else: print(n, "is not a palindrome")