UVa 382 - Perfection

382 - Perfection

 * http://acm.uva.es/p/v3/382.html

Summary

 * Find if the sum of the divisors are greater than, less than or equal to the number provided.

Explanation

 * If num > sum divisors output deficient
 * If num < sum divisors output abundant
 * If num == sum output Perfect

Gotchas

 * the END OF OUTPUT line must be followed by a '\n'

Input
15 28 6 56 60000 22 496 0

Output
PERFECTION OUTPUT 15 DEFICIENT 28 PERFECT 6 PERFECT 56 ABUNDANT 60000 ABUNDANT 22 DEFICIENT 496 PERFECT END OF OUTPUT