#C14281. Palindrome Checker

    ID: 43913 Type: Default 1000ms 256MiB

Palindrome Checker

Palindrome Checker

Given a string, determine whether it is a palindrome, considering only alphanumeric characters and ignoring cases. A palindrome is a word, phrase, number, or other sequence of characters that reads the same forward and backward (after filtering out any non-alphanumeric characters). This problem requires you to implement a solution that reads from standard input and outputs to standard output.

For example: "A man, a plan, a canal: Panama" is a palindrome, whereas "race a car" is not.

inputFormat

The input consists of a single line containing a string S. The string may include spaces, punctuation, and a mix of uppercase and lowercase letters.

outputFormat

Print "True" if the given string is a palindrome after considering only alphanumeric characters and ignoring case; otherwise, print "False".

## sample
True