#C846. Taco Palindrome Checker

    ID: 52444 Type: Default 1000ms 256MiB

Taco Palindrome Checker

Taco Palindrome Checker

You are given a string S which may include spaces, punctuation, and mixed-case letters. The goal is to determine whether the string is a palindrome by considering only its alphanumeric characters and ignoring the case. Formally, let \( S' \) be the string obtained by removing all non-alphanumeric characters from S and converting all letters to lowercase. The string is a palindrome if \( S' = (S')^R \), where \( (S')^R \) is the reverse of \( S' \).

Output YES if the processed string is a palindrome and NO otherwise.

inputFormat

The input consists of a single line containing the string S. The string may contain spaces and punctuation.

outputFormat

Output a single line with either YES or NO depending on whether the string is a palindrome.

## sample
race car
YES