int main(void)
{
int factorsum(int number);
int m,n,x,s;
scanf("%d%d",&m,&n);
printf("enter two number:1<=m,n<=1000\n");
for(x=m;x<=n;x++)
{
s=x;
if(factorsum(s)==s)
printf("%d\n",s);
}
return 0;
}
int factorsum(int number)
{
int i,sum;
for(i=1,sum=0;i<number;i++)
if(number%i==0)
sum=sum+i;
return sum;
}