int main() { long long a,b; while(scanf("%lld%lld",&a,&b)!=EOF) { printf("%lld\n",(a+1)*(a)/2*b*(b+1)/2); } return 0; }