text = input("Enter a String: ")

if text == text[::-1]:
    print("Palindrome")
else:
    print("Not a Palindrome")