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