Mahi is organizing entries at a startup office and needs to flag which submitted codes are palindromes.
What your program reads
One string S.
What your program prints
"YES" or "NO".
Limits
1 ≤ |S| ≤ 1000
Example input
cjjbce
Expected output
NO
main.c
Your work is saved in this browser as you type.
Loading editor…
Input for Run
Run tries your code on the input above and shows what it prints. Submit checks your output against every test, including hidden ones.
Shortcut: Ctrl + Enter sends it to the judge.