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