n=int(input()) a = 0 b = 0 for d in range(1,n+1): if n % d == 0: a += d b += n // d print(a // b)