x,y;main(a){for(;~scanf("%d %d",&x,&y);printf("%d\n",a))for(a=0;~x&~y;a+=x--*y--);}