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