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