#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n;
cin>>n;
long long int ans=0;
for(int i=1;i<=n/2;i++)
{
if(n%i==0) ans+=i;
}
if(ans>n) cout<<"Abundant";
else if(ans==n) cout<<"Perfect";
else cout<<"Deficient";
return 0;
}
共 1 条回复
https://bl6k2fcsea.feishu.cn/file/U5EHbKQNro2NZKxs0jecV2yrn0d