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