#C4011. Palindrome Checker

    ID: 47503 Type: Default 1000ms 256MiB

Palindrome Checker

Palindrome Checker

Given a string, determine whether it is a palindrome by considering only alphanumeric characters and ignoring cases. In other words, ignore spaces, punctuation, and letter case. For example, the phrase "A man, a plan, a canal, Panama!" is a palindrome.

Your task is to read an input string from standard input and output 'True' if the string is a palindrome under these conditions, or 'False' otherwise.

inputFormat

The input consists of a single line containing a string s (which may include spaces, punctuation, and mixed cases).

outputFormat

Output a single line: 'True' if the string s is a palindrome after removing non-alphanumeric characters and ignoring case differences, otherwise output 'False'.

## sample
A man, a plan, a canal, Panama!
True