#include <bits/stdc++.h>   using namespace std;   int main() {     long long w, h;     cin >> w >> h;     long long res = 0;     if (w == 1 || h == 1) {       cout <<  0  << endl;       return 0;     }     for (long long i = 1; i < h; i++) {       for (long long j = 1; j < w; j++) res += min(i, h - i) * min(j, w - j);     }     cout << res << endl;     return 0;   }   