#C3052. Palindrome Checker

    ID: 46437 Type: Default 1000ms 256MiB

Palindrome Checker

Palindrome Checker

Determine whether a given string is a palindrome. A string is considered a palindrome if, after removing all spaces and converting all letters to lowercase, it reads the same forwards and backwards.

In mathematical terms, if we denote the processed string as \( s' \), then the condition is \( s' = (s')^R \), where \( (s')^R \) is the reverse of \( s' \). Note that strings consisting entirely of spaces or a single character are considered palindromic.

inputFormat

Input is given from standard input (stdin). It consists of a single line containing a string. The string can have spaces and is case-insensitive.

outputFormat

Output to standard output (stdout) a single line: "YES" if the processed string is a palindrome, or "NO" otherwise.

## sample
madam
YES