#include <bits/stdc++.h>
using namespace std;
const int maxN = 2e5 + 1;
int w, h;
long long Pedy = 0;
int main() {
  scanf("%d%d", &w, &h);
  for (int i = 1; i <= w; i++)
    for (int j = 1; j <= h; j++) Pedy += min(i, w - i) * min(j, h - j);
  printf("%lld", Pedy);
}
