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