File standardInput readLines map(asNumber)map(n,(n*(n+1)*(2*n+1)/6)println)