#C13275. Palindrome Checker

    ID: 42795 Type: Default 1000ms 256MiB

Palindrome Checker

Palindrome Checker

The task is to determine whether a given string is a palindrome after removing all non-alphanumeric characters and ignoring case and spaces. In mathematical terms, for a string \( s \), define the cleaned string \( s' \) by removing all characters that do not satisfy the regular expression [A-Za-z0-9] and converting the remaining characters to lowercase. The string is a palindrome if and only if \( s' = (s')^R \), where \( (s')^R \) denotes the reverse of \( s' \).

inputFormat

The input consists of a single line containing the string \( s \) that needs to be checked. The string may include spaces, punctuation, and mixed case letters.

outputFormat

Output a single line containing either "True" if the given string is a palindrome or "False" otherwise.

## sample
racecar
True

</p>