#include <bits/stdc++.h>
using namespace std;
int main() {
  long long h, w;
  cin >> h >> w;
  long long ans = 0;
  for (int ht = 2; ht <= h; ht += 2) {
    for (int wd = 2; wd <= w; wd += 2) {
      ans += (h - ht + 1) * (w - wd + 1);
    }
  }
  cout << ans;
}
