def process(N):
N = int( N )
if ( N < 0 ):
N=-N
else:
N=N
S = []
sum = 0
for i in range ( N-1 ):
if (N % (i+1)) == 0:
S.append((i+1))
for i in range ( len( S ) ):
sum = sum + S[i]
if (sum > N):
return "盈數"
elif sum == N:
return "完全數"
else:
return "虧數"
A = input()
print(process(A))
A = input()
print(process(A))
A = input()
print(process(A))
def process(N):
N = int( N )
if ( N < 0 ):
N=-N
else:
N=N
S = []
sum = 0
for i in range ( N-1 ):
if (N % (i+1)) == 0:
S.append((i+1))
for i in range ( len( S ) ):
sum = sum + S[i]
if (sum > N):
return "盈數"
elif sum == N:
return "完全數"
else:
return "虧數"
A = input()
print(process(A))
A = input()
print(process(A))
A = input()
print(process(A))
不只3筆輸入喔0u0