Given a natural number , being the sum of its divisors not counting itself. A number is called popiropis if . A number is called -popiropis if for an integer .
For instance, the number 133 is popiropis, because , and . Besides, 132 is 3-popiropis, because .
Your task is to write a program that, for each natural number given, print if it is popiropis, if is -popiropis (and which is the value of ), or if it is nothing.
The input is a sequence of natural numbers .
Your program must print a line for each , indicating which class is: popiropis, -popiropis, or nothing.
Your program must implement and use the function
int sum_divisors(int n);
that, given a natural number |n| different than 0, returns the sum of its divisors (not counting itself).
Input
131 132 133 134
Output
131: nothing 132: 3-popiropis 133: popiropis 134: nothing
Input
3 80 273 38222 44642 1000000 1629073 8802908
Output
3: nothing 80: 3-popiropis 273: popiropis 38222: 4-popiropis 44642: 4-popiropis 1000000: nothing 1629073: popiropis 8802908: 3-popiropis