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