#C5506. 5-Letter Palindrome Checker
5-Letter Palindrome Checker
5-Letter Palindrome Checker
You are given a string s consisting of exactly 5 characters. Your task is to determine whether s is a palindrome. A string is a palindrome if it reads the same forward and backward. In mathematical terms, for the given string s, if we denote its reverse as s^\text{R}, then s is a palindrome if and only if $$s = s^\text{R}.$$
For example, the string "radar" is a palindrome because reversing it yields "radar" again, while "hello" is not a palindrome because its reverse is "olleh".
inputFormat
The input consists of a single line containing a 5-letter string s.
outputFormat
Output a single line containing Yes
if the string is a palindrome, or No
otherwise.
radar
Yes
</p>