#K63397. Palindromic String Checker

    ID: 31744 Type: Default 1000ms 256MiB

Palindromic String Checker

Palindromic String Checker

Given a string, determine whether it is a palindrome by considering only alphanumeric characters and ignoring cases. A palindrome is a sequence that reads the same backward as forward.

Note: An empty string is considered a valid palindrome.

inputFormat

The input consists of a single line containing the string to be processed. The string is read from standard input (stdin).

outputFormat

Output 'True' if the processed string is a palindrome according to the rules; otherwise, output 'False'. The output is written to standard output (stdout).## sample

A man, a plan, a canal: Panama
True