#K68277. Palindrome Checker

    ID: 32829 Type: Default 1000ms 256MiB

Palindrome Checker

Palindrome Checker

Given a string s, determine whether it is a palindrome when considering only alphabetical characters and ignoring case. In other words, if we define the cleaned string \( s' \) by removing all non-alphabetical characters and converting all remaining characters to lowercase, then the string is a palindrome if \( s' = \text{reverse}(s') \). For example, "A man, a plan, a canal, Panama" is a palindrome.

inputFormat

The input consists of a single line containing the string s. The string may contain spaces, punctuation, and other non-alphabetical characters.

Format: s (a string)

outputFormat

Output a single line: True if the processed string is a palindrome, and False otherwise.

Format: A single line with either True or False.

## sample
A man, a plan, a canal, Panama
True