Problem A
Almost Perfect
A positive integer
Perfect numbers are rare; only
Input
Input consists of a sequence of up to
Output
For each input value, output the same value and then one of the following: “perfect” (if the number is perfect), “almost perfect” (if it is almost perfect but not perfect), or “not perfect” (otherwise).
Sample Input 1 | Sample Output 1 |
---|---|
6 65 650 |
6 perfect 65 not perfect 650 almost perfect |