#K33497. Palindrome Checker
Palindrome Checker
Palindrome Checker
Given an input string, determine whether it is a palindrome. In this problem, you should ignore cases, spaces, and punctuation. A string is considered a palindrome if, after removing all non-alphanumeric characters and converting all letters to lowercase, it reads the same backward as forward. For example, the string "A man, a plan, a canal, Panama!" is a palindrome.
The task is to write a program that reads a string from standard input and outputs 'True' if the string is a palindrome, or 'False' otherwise.
inputFormat
The input consists of a single line containing a string s. The string may include letters, digits, spaces, and punctuation.
outputFormat
Output a single line: 'True' if the string is a palindrome, or 'False' otherwise.
## sampleA man, a plan, a canal, Panama!
True