N = int(input()) m = set() for n in range(1,N+1): p = n + (n+1)*(N-n) m.add(p) print(max(m))