text = "madam"

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