1 #include<stdio.h> 2 int main() 3 { 4 long long n,m; 5 while(~scanf("%lld%lld",&n,&m)) 6 printf("%lld ",(n+n*n)*(m+m*m)/4); 7 }