System.in.eachLine{n=it.toLong()/30.173+0.6as int println~n*n*(~n-n)/6}