#K79712. Sum of Factors
Sum of Factors
Sum of Factors
Given a positive integer (n), compute the sum of all positive divisors of (n). The divisors include both 1 and (n) itself. The result is defined by the formula: (S(n) = \sum_{d|n} d). Your task is to read an integer from standard input and print the sum of its divisors to standard output.
inputFormat
Input Format: A single line containing a positive integer (n).
outputFormat
Output Format: A single integer representing the sum of all the positive divisors of (n).## sample
6
12