#C14928. Palindrome Checker

    ID: 44631 Type: Default 1000ms 256MiB

Palindrome Checker

Palindrome Checker

Given a string s, determine whether it is a palindrome considering only alphanumeric characters and ignoring case. A palindrome is a string that reads the same backward as forward. For example, the string "A man, a plan, a canal: Panama" is a palindrome if you ignore punctuation and spaces. Formally, a string is a palindrome if \( s = s^{R} \), where \( s^{R} \) denotes the reverse of s.

inputFormat

Input is provided via standard input (stdin) as a single line containing the string s.

outputFormat

Output a single line to standard output (stdout): print "True" if the cleaned string is a palindrome, otherwise print "False".## sample

A man, a plan, a canal: Panama
True