Palindrome Detector
Read strings from stdin (one per line) until EOF. For each line print YES if the string is a palindrome (case-sensitive, no whitespace stripping), else NO.
Scoring: 3 test cases — 33 / 33 / 34 points. Total: 100 points.
Input Format
One string per line.
Output Format
YES or NO per line.
Example
Input:
racecar
hello
abba
Output:
YES
NO
YES