Input
The input of the program is a list of positive integers, ending with a 0.
Output
The program must output the type of each integer.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.
Public test cases
Input
3
6
28
412
198
0
Output
3 is deficient
6 is perfect
28 is perfect
412 is deficient
198 is abundant
Input
3
6
28
412
198
0
Output
3 is deficient
6 is perfect
28 is perfect
412 is deficient
198 is abundant