System.in.eachLine{println~(n=it.toLong())*(~n-n)*n/6}