REBOL[]while[i: input][r: 0 for x 1 to-integer i 1[r: x * x + r] print r]