#include<stdio.h>int main(){ long long m,n,t; while(~scanf("%lld%lld",&m,&n)) { t=m*(m+1)/2*n*(n+1)/2; printf("%lld\n",t); }}