while 1:m,n=map(int,raw_input().split());print~n*n*(~-n-3*m)/6+(m<n)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page