#include <bits/stdc++.h>
using namespace std;
int main() {
  int w, h;
  cin >> w >> h;
  if (w == 1 || h == 1) {
    cout << 0;
  } else {
    long long cnt = 0, cnt2 = 0;
    for (int j = 0; j <= min(w, h); j++) {
      for (int k = j + 2; k <= min(w, h); k += 2) {
        if (k <= min(w, h)) cnt += 1;
      }
    }
    for (int j = 0; j <= max(w, h); j++) {
      for (int k = j + 2; k <= max(w, h); k += 2) {
        if (k <= max(w, h)) cnt2 += 1;
      }
    }
    cout << cnt * cnt2;
  }
  return 0;
}
