N = int(input()) num_max = 0 for i in range(N//2,N): low = i high = N-i tmp = low + high*(low+1) if tmp > num_max: num_max = tmp elif tmp < num_max: break print(num_max)