Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/while-palindrom-sonmi

Palindrome number?

Easy 1000 ms 64 MB 30%
Share

A positive integer $n$ is given. If its notation reads the same from left to right and from right to left (a palindrome number), print true, otherwise false.

Comparing the left and right halves of the number symmetrically

Input

One positive integer $n$.

Output

true or false accordingly.

Note

$1 \le n \le 10^{18}$

Examples

Input #1
12321
Output #1
true
Input #2
1230
Output #2
false

Sign in to submit a solution

Signing up is free and takes a minute.