#C8444. Palindromic String Checker

    ID: 52427 Type: Default 1000ms 256MiB

Palindromic String Checker

Palindromic String Checker

Given a string, determine whether it is a palindrome by ignoring case and non-alphanumeric characters. A palindrome is a string that reads the same forwards and backwards after removing any characters that are not letters or digits.

For example, the string "A man, a plan, a canal, Panama!" is a palindrome. Your task is to process the input string and output True if it is a palindrome, or False otherwise.

The check should be case-insensitive and ignore punctuation and spaces.

inputFormat

The input consists of a single line containing the string to be checked. The input is provided via stdin.

outputFormat

Output a single line with either True if the input string is a palindrome (after ignoring non-alphanumeric characters and case), or False if it is not. The output should be printed to stdout.

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