#include
using namespace std;
long int getSumOfFactors(int n)
{
long int temp = 0;
for (int i=1;i<=n;i++){
if (n%i==0) temp = temp+i;
}
return temp;
}
int main()
{
int n;
cout<<"Input the number : ";
cin>>n;
long int result = getSumOfFactors(n);
cout<<"\nThe Summation of the all the factors of the number is : "<