#C4171. Palindrome Check
Palindrome Check
Palindrome Check
Given a non-negative integer represented as a string N, your task is to determine whether it is a palindrome. A number is said to be a palindrome if it reads the same backward as forward. In mathematical terms, a string N is a palindrome if
\( N = reverse(N) \)
where \( reverse(N) \) represents the string N with its characters in reverse order.
Constraints:
- The input is a single line containing the string representation of a non-negative integer.
- The number can be very large, so it is provided as a string.
Your solution should read input from standard input (stdin) and output the result to standard output (stdout).
inputFormat
The input consists of a single line containing the string N, which represents a non-negative integer.
Example:
12321
outputFormat
Output a single line: print Yes
if the string N is a palindrome, otherwise output No
.
Example:
Yes## sample
12321
Yes