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