#C3247. Is Palindrome?

    ID: 46653 Type: Default 1000ms 256MiB

Is Palindrome?

Is Palindrome?

Given a string s, determine whether it is a palindrome when considering only alphanumeric characters and ignoring cases. Formally, let \( s' \) be the string obtained from \( s \) by removing all characters that are not digits or letters. The string is a palindrome if \( s' = \text{reverse}(s') \). For example, "A man, a plan, a canal, Panama" is a palindrome.

inputFormat

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

outputFormat

Output a single line containing either True or False, indicating whether the string is a palindrome under the given criteria.

## sample
racecar
True