#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long w, h, cnt = 0;
  cin >> w >> h;
  if (w < 2 || h < 2) {
    cout << 0 << "\n";
    return 0;
  }
  for (int i = 2; i <= w; i += 2) {
    for (int j = 2; j <= h; j += 2) {
      cnt += (w - i + 1) * (h - j + 1);
    }
  }
  cout << cnt << "\n";
  return 0;
}
