pythondef solve(N): s = sum(get_divisors(N)) if s == 2 * N: return "Perfect" if s < 2 * N: return "Deficient" return "Abundant"