import java.util.Scanner;
public class Test {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int i = input.nextInt();
int k;
int j = 1, sum = 0; // 而应在该处为j赋初值1;
while (j <= i / 2) {
k = i % j;
if (k == 0)
sum += j;
j++;
}
if (sum == i){
System.out.println(i+"是完全数");
}else {
System.out.println(i+"不是完全数");
}
}
}