def is_palindrome(s):
    if len(s) < 1:
	    return True
    else :
    	if s[0] == s[-1] :
    		return is_palindrome(s[1:-1])
    	else :
    		return False
a='MOM'
if(is_palindrome(a)== True):
	print(a , "is a palindrome ")
else :
    print(a, "is not a palindrome")

		

