#include <bits/stdc++.h>
using namespace std;
int main() {
  int w, h;
  while (~scanf("%d%d", &w, &h)) {
    long long cnt = 0;
    for (int i = 0; i <= w; i++) {
      for (int j = 0; j <= h; j++) {
        cnt += (long long)((long long)min(w - i, i - 0)) *
               ((long long)min(h - j, j - 0));
      }
    }
    cout << cnt << endl;
  }
  return 0;
}
