REBOL[]while[n: do input][print n *(m: n + 1)*(m + n)/ 6]