n = int(input()) print(round((n-1)*n*(n+1)/6+n))