#K70142. Palindrome Checker

    ID: 33243 Type: Default 1000ms 256MiB

Palindrome Checker

Palindrome Checker

Given a string s, determine whether it is a palindrome. A palindrome is a string that reads the same forward and backward when ignoring non-alphanumeric characters and case differences. In other words, a string is a palindrome if it satisfies $$s = s^R$$, where $$s^R$$ denotes the reverse of the string s.

Your task is to read a single string from the standard input and output True if the string is a palindrome and False otherwise.

inputFormat

The input consists of a single line containing the string s. The string may include spaces, punctuation, and other special characters.

outputFormat

Output a single line containing either True or False based on whether the input string is a palindrome after ignoring non-alphanumeric characters and case.## sample

A man, a plan, a canal: Panama
True