#include <bits/stdc++.h>
using namespace std;
int main() {
  cout << fixed;
  cout.precision(10);
  long long w, h;
  cin >> w >> h;
  long long sol = 0ll;
  for (long long x = 2; x <= w; x += 2) {
    for (long long y = 2; y <= h; y += 2) {
      sol += (w - x + 1) * (h - y + 1);
    }
  }
  cout << sol;
  return 0;
}
