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