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