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