File standardInput foreachLine(x,x=x asNumber;writeln(x*(x+1)*(2*x+1)/6))