#K58182. Palindrome Checker
Palindrome Checker
Palindrome Checker
Given a string, determine whether it is a palindrome. A string is considered a palindrome if it reads the same backward as forward after removing all spaces and punctuation, and converting all letters to lowercase. Note that digits are not modified; they are considered in the palindrome check.
Input: A single line containing the string to be checked.
Output: Print "Yes" if the input string is a palindrome according to the rules above; otherwise, print "No".
Note: In your processing, remove all punctuation and whitespace, and convert letters to lowercase. In mathematical terms, if the cleaned string is denoted by \( s \), it must satisfy \( s = s^R \) where \( s^R \) is the reverse of \( s \).
inputFormat
The input consists of a single line read from standard input (stdin) containing the string to be checked. The string may include spaces, punctuation, and mixed cases.
outputFormat
Output a single line to standard output (stdout): either "Yes" if the string is a palindrome according to the rules, or "No" otherwise.
## sampleA man, a plan, a canal: Panama
Yes