#K41577. Palindrome Checker
Palindrome Checker
Palindrome Checker
In this problem, you are given a single string. Your task is to determine whether the string is a palindrome.
A palindrome is a word, phrase, number, or other sequence of characters which reads the same backward as forward. For example, "radar" and "level" are palindromes while "coder" and "hello" are not.
Output Yes
if the input string is a palindrome, otherwise output No
.
inputFormat
The input consists of a single line containing a non-empty string s.
outputFormat
Print a single line containing Yes
if the string is a palindrome; otherwise, print No
.
radar
Yes