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