(while(print((^(x y)(+(*(-(* x 3)y -1)y(+ y 1)1/6)(div(- y 1)x)))(read)(read))))