← Back to Problems

Palindrome Detector

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

LEADERBOARD

Rank Developer Score Submitted
1 🥇 alice
100 / 100
May 14, 2026, 7:12 PM UTC
2 🥈 gAditya2208
100 / 100
May 22, 2026, 11:55 AM UTC