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