n = int(input()) yakusuu = [] seki = 1 wa = 0 for i in range(1, 101): if n % i == 0: yakusuu.append(i) seki *= i wa += i ans = wa * seki waru = 0 for i in yakusuu: waru += seki // i print(ans // waru)