#C10469. Palindrome Checker

    ID: 39677 Type: Default 1000ms 256MiB

Palindrome Checker

Palindrome Checker

Given a word, determine whether it is a palindrome. A palindrome is a sequence that reads the same backward as forward. For example, radar and abba are palindromes, while hello is not. Formally, a word \(w\) is a palindrome if and only if \(w = w^R\), where \(w^R\) denotes the reverse of the word.

Note that an empty string is also considered a palindrome.

inputFormat

The input consists of a single line containing a word (possibly empty). This word may include letters and other characters.

outputFormat

Output a single line containing YES if the word is a palindrome, and NO otherwise.

## sample
radar
YES