Given an integer , return the sum of all of its unique factors.
Input
Your first line will contain an integer .
Output
The sum of all unique factors of .
Constraints
For all test cases:
Example 1
Input
10
Output
18
Explanation
The factors of are . The sum of these factors is .
Example 2
Input
4
Output
7
Explanation
The factors of are . The sum of these factors is .
Python Template
n = int(input())
Comments