n=int(input("please input a integer n:"))result =0for i in range(1,n): if n%i==0:result+=iprint("the factor of n sum is :%d"%result)