#include <bits/stdc++.h>
using namespace std;
int main(int argc, char **argv) {
  int w, h;
  cin >> w >> h;
  unsigned long long count = 0;
  for (int a = 1; a <= w / 2; a++)
    for (int b = 1; b <= h / 2; b++) count += (w - 2 * a + 1) * (h - 2 * b + 1);
  cout << count;
  return 0;
}
