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