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