N = int(input()) ans = 0 for i in range(N+1): ans = max(ans,N*i+N-i**2) print(ans)