#C6937. Palindrome Checker

    ID: 50752 Type: Default 1000ms 256MiB

Palindrome Checker

Palindrome Checker

You are given a string S. Your task is to determine whether it is a palindrome after removing all non-alphanumeric characters and converting all letters to lowercase. In other words, after filtering out characters that are not letters or digits, and converting the remaining characters to lowercase, check if the string reads the same backward as forward.

For example, the string "A man, a plan, a canal, Panama" is a palindrome since, after processing, it becomes a string that is identical when reversed.

inputFormat

The input consists of a single line containing the string S. S can include letters, digits, spaces, and special characters.

outputFormat

Output a single line with either "True" or "False" indicating whether the processed string is a palindrome.## sample

A man, a plan, a canal, Panama
True