#include<stdio.h>
int main(){
int c,d,e;
int total;
while(scanf("%d",&c)!=EOF){
for(d=1,total=0;d<=c;d++){
if(c%d==0){
e=d;
total=total+e;
}
}
if(total>c){
printf("盈數\n");
}
else if(total<c){
printf("虧數\n");
}
else {
printf("完全數\n");
}
}
return 0;
}
#include
int main(){
int c,d,e;
int total;
while(scanf("%d",&c)!=EOF){
if(c%d==0){
e=d;
total=total+e;
}
}
if(total>c){
printf("盈數\n");
}
else if(total<c){
printf("虧數\n");
}
else {
printf("完全數\n");
}
}
return 0;
}
就降