n = int(input()) res = n for i in range(1, n + 1): res = max(i + (n - i) * (i + 1), res) print(res)