#K94947. Palindrome Checker
Palindrome Checker
Palindrome Checker
You are given a string s
and you need to determine whether it is a palindrome.
A palindrome is a string that reads the same backward as forward. For example, "racecar", "a", and "abba" are palindromes, while "hello" and "a bcc ba" are not.
Please note that the check is case-sensitive and even whitespace is considered in the comparison.
inputFormat
The input consists of a single line containing a string s
. The string may include spaces and other printable characters. It is guaranteed that the length of the string does not exceed 1000 characters.
outputFormat
Output a single word: Yes
if the given string is a palindrome; otherwise output No
.
racecar
Yes