Boolean
Boolean-23
Boolean-24
Boolean-25
~/algor $ cat problems/uch-xonali-palindrom
Three-digit palindrome
Easy
1000 ms
64 MB
18%
A three-digit positive integer $n$ is given. Check whether the statement is true: “$n$ reads the same from left to right and from right to left”. For example, $121$ and $707$ are such numbers.
Input
One three-digit positive integer $n$.
Output
One integer: $1$ if the statement is true, otherwise $0$.
Note
$100 \le n \le 999$
Examples
Input #1
121
Output #1
1
Input #2
123
Output #2
0