while {[gets stdin n]} {puts [expr ~$n*(~$n-$n)*$n/6]}