#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-11;
const double PI = 2 * acos(0.0);
using ll = long long;
using ull = unsigned long long;
int main() {
  ll w, h;
  cin >> w >> h;
  ll ans = 0;
  for (int i = 2; i <= h; i += 2) {
    for (int j = 2; j <= w; j += 2) {
      ans += (h - i + 1) * (w - j + 1);
    }
  }
  cout << ans << endl;
  return 0;
}
