for(;l=readline().split(' ');print(z)){a= +l[0];b= +l[1];y=a<b?a:b;z=0;while(y){z+=(a-(y-1))*(b-(y-1));y--;}}

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

download

return to the top page