~/algor $ cat problems/while-narsissistik-son
Narcissistic number
Easy
1000 ms
64 MB
31%
A $k$-digit positive integer $n$ is given. If the sum of the $k$-th powers of its digits equals $n$ itself, print true, otherwise false.
Input
One positive integer $n$.
Output
true or false accordingly.
Note
$1 \le n \le 10^{9}$
Examples
Input #1
153
Output #1
true
Input #2
154
Output #2
false