Programming Principles 1. Week 6. October 7 - 13. PART 2
Palindrome is a sequence of characters that reads the same backwards as well as forwards. Find out whether the given text is a palindrome. Do not forget that space is not pronounced when reading.
String S (|S| ≤ 255) consists of small Latin letters and spaces. |S| means the length of a string.
Print "YES" if the text is a palindrome and "NO" otherwise.
a roza upala na lapu azora