/*A positive, non-zero integer, N, is said to be perfect if the sum of its positive proper divisors is equal to the number itself. If this sum is less than N, the numbers is said to be deficient. If the sum is greater than N, the number is said to be abundant.*/
//I tried to make one which is the one below but it didn't work.
//Please help me, I'm still new to programming, tysm
import java.util.Scanner;
public class *{
public static void main(String[] args){
Scanner kbd = new Scanner(System.in);
System.out.print("Input N: ");
int n = kbd.nextInt();
int i = 1;
int sum = 1;
for(i=1; i<=n; i++){
if (n % i == 0){
sum = sum + i;
if (sum < n)
System.out.print(n + " is abundant.");
else if (sum == n)
System.out.print(n + " is perfect.");
else if (sum > n)
System.out.print(n + " is deficient.");
}
}
}
}