#include <bits/stdc++.h>
using namespace std;
int main() {
  int w, h;
  cin >> w >> h;
  unsigned long long ans = 0;
  for (int x = 0; x < w; x++) {
    for (int y = 0; y < h; y++) {
      unsigned long long mn = ((x < w - x) ? (x) : (w - x));
      unsigned long long mn2 = ((y < h - y) ? (y) : (h - y));
      ans += (mn * mn2);
    }
  }
  cout << ans << endl;
  return 0;
}
