#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const int N = 1e6 + 7;
int main() {
  long long w, h;
  cin >> w >> h;
  long long ans = 0, x = 0, y = 0;
  for (long long i = 1; i < (int)w + 1; i++) {
    for (long long j = 1; j < (int)h + 1; j++) {
      if (i < w - i)
        x = i;
      else
        x = w - i;
      if (j < h - j)
        y = j;
      else
        y = h - j;
      ans += x * y;
    }
  }
  cout << ans;
  return 0;
}
