Time limit
1s
Memory limit
128 MB
A palindrome is a word that reads the same from front to back and from back to front. For example, radar and sees are palindromes.
Numbers can be checked in the same way. If the digits of a number are the same when read left to right and right to left, the number is a palindrome number. For example, 121 and 12421 are palindrome numbers, while 123 and 1231 are not.
However, adding meaningless leading zeroes is not allowed. For example, 10 must not be treated as the palindrome 010.
The input consists of multiple test cases. Each test case is an integer from 1 to 99999, given on its own line.
The last line contains 0. This line is not processed and only marks the end of input.
For each test case, print yes if the given number is a palindrome number, and no otherwise.