<reponame>Akshara2820/Python_Folder
n=int(input("enter no."))
i=1
s=0
while i<n:
    if n%i==0:
        s+=i
    i+=1
if s==n:
    print("perfect no.")
else:
    print("not perfect no.")
n=int(input("enter no."))
i=1
s=0
while i<n:
    if n%i==0:
        s+=i
    i+=1
if s==n:
    print("perfect no.")
else:
    print("not perfect no.")