#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  long long w, h;
  cin >> w >> h;
  long long ans = 0;
  for (long long y = 0; y <= h; y++) {
    for (long long x = 0; x <= w; x++) {
      long long min_x = min(x, w - x);
      long long min_y = min(y, h - y);
      ans += min_x * min_y;
    }
  }
  cout << ans;
}
