n = int(input()) if n == 1: print(0) exit() if n%2 == 0: ans = (n**3+3*n**2+5*n-6)//6 else: ans = (n**3+3*n**2+5*n-3)//6 print(ans)