Check If The Given Number Is Armstrong Or Not

easy
Check if the given number is Armstrong or not.
An Armstrong number is one which forms the total of the same number, when each of its digits is raised to the power of the number of digits in the number.

Input Format

An integer n

Output Format

true or false

Constraints

2<=n<=10^3

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
153
Output
true
Previous
Largest Of Three Numbers
Next
Sum Of Digits Of A Number

Related Questions