N = int(raw_input()) mx = 0 for i in xrange(1, N): j = i + (i + 1) * (N - i) if mx < j: mx = j print mx