import std.stdio;void main(){for(int n;~scanf("%d",&n);)writeln(~n*n*~(2*n)/6);}