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