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