#C11912. Palindrome Checker
Palindrome Checker
Palindrome Checker
Given a string ( s ), determine whether it is a palindrome. A palindrome is a sequence that reads the same backward as forward when ignoring spaces, punctuation, and case sensitivity. In formal terms, let ( f(s) ) be the string obtained by removing all non-alphanumeric characters from ( s ) and converting all letters to lowercase. The string ( s ) is a palindrome if and only if ( f(s) = f(s)^{R} ), where ( f(s)^{R} ) denotes the reverse of ( f(s) ).
inputFormat
The input is given via standard input (stdin) as a single line containing the string ( s ). The string may include spaces, punctuation, and numbers.
outputFormat
Output a single line to standard output (stdout) containing either "True" if the string is a palindrome under the given conditions, or "False" otherwise.## sample
madam
True
</p>