<<<<<<< HEAD
int main()
{
int a;
scanf("%d",&a);
int i;
int sum=0;
for(i=a;i>0;i--)
{
if(a%i==0)
sum+=i;
}
printf("%d",sum);
return 0;
}
=======
int main()
{
int a;
scanf("%d",&a);
int i;
int sum=0;
for(i=a;i>0;i--)
{
if(a%i==0)
sum+=i;
}
printf("%d",sum);
return 0;
}
>>>>>>> efd4245fe427ffeefe49c72470b81a015d8dcf82
