while 1:a,b=map(int,raw_input().split());print(b>a)-~b*b*(3*a-b+1)/6

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top