#include <bits/stdc++.h>
using namespace std;
void fileIO() {}
bool sortbysecdesc(const pair<long long, long long> &a,
                   const pair<long long, long long> &b) {
  return a.second > b.second;
}
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  fileIO();
  long long T;
  T = 1;
  while (T--) {
    long long w, h;
    cin >> w >> h;
    w++;
    h++;
    long long ans = 0;
    for (long long i = 3; i <= 40001; i += 2) {
      long long vertical = h - (i - 1);
      vertical = max(vertical, 0LL);
      for (long long j = 3; j <= 40001; j += 2) {
        long long horizontal = w - (j - 1);
        horizontal = max(horizontal, 0LL);
        ans += (vertical * horizontal);
      }
    }
    cout << ans;
  }
  return 0;
}
