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