n = int(input()) from sympy import divisors print(sum(divisors(n)))