#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned long long a, b, s = 0, a1, b1;
  cin >> a >> b;
  for (b1 = 2; b1 <= b; b1 = b1 + 2) {
    for (a1 = 2; a1 <= a; a1 = a1 + 2) {
      s += (a - a1 + 1) * (b - b1 + 1);
    }
  }
  cout << s;
  return 0;
}
