#C7300. Armstrong Number Checker

    ID: 51157 Type: Default 1000ms 256MiB

Armstrong Number Checker

Armstrong Number Checker

Given a non-negative integer n, determine whether it is an Armstrong number (also known as a narcissistic number). An Armstrong number is a number that is equal to the sum of its own digits each raised to the power of the number of digits. In other words, if n has d digits and its digits are \(d_1, d_2, \dots, d_d\), then n is an Armstrong number if:

\( n = d_1^d + d_2^d + \cdots + d_d^d \)

For example, 153 is an Armstrong number because \(1^3 + 5^3 + 3^3 = 153\). The task is to check whether the provided integer meets this criterion.

inputFormat

The input consists of a single non-negative integer n provided via standard input.

\(0 \leq n \leq 10^9\)

outputFormat

Output a single line to the standard output containing True if n is an Armstrong number, and False otherwise.

## sample
153
True