#K85977. Narcissistic Number Checker
Narcissistic Number Checker
Narcissistic Number Checker
Given a positive integer n, determine whether it is a Narcissistic Number. A number is called Narcissistic if it is equal to the sum of its own digits each raised to the power of the number of digits. In other words, if n can be expressed as \( n = d_1d_2\ldots d_k \), then n is Narcissistic if:
\( n = d_1^k + d_2^k + \cdots + d_k^k \)
Your task is to write a program that reads an integer from standard input and prints Narcissistic
if the number satisfies the above property; otherwise, print Not Narcissistic
.
inputFormat
The input consists of a single line containing one integer \( n \) (where \( 0 \le n \le 10^9 \)).
outputFormat
Output a single line to standard output: print Narcissistic
if \( n \) is a Narcissistic number, otherwise print Not Narcissistic
.
153
Narcissistic