N = int(input()) A = B = 0 for i in range(1,N+1): if N % i == 0: A += i B += 1/i print(int(A/B))