#C4669. Palindrome Number Checker
Palindrome Number Checker
Palindrome Number Checker
This problem requires you to check whether a given number is a palindrome. A palindrome number is one that remains the same when its digits are reversed. Given a string representing a number, determine if it reads the same forwards and backwards. Your task is to output YES
if the number is a palindrome, and NO
otherwise.
For example, if the input is 121, the output should be YES since reversing 121 yields 121. However, if the input is 123001321, the output should be NO.
inputFormat
The input consists of a single line that contains a string representing a number. There are no spaces between the digits.
outputFormat
Output a single line containing the result: YES
if the input string is a palindrome, and NO
otherwise.
121
YES