#include <bits/stdc++.h>
using namespace std;
long long n, i, j, k, c, m;
long long dp[200][2];
void solve() {
  long long w, h;
  cin >> w >> h;
  if (w < 2 || h < 2) {
    cout << 0 << endl;
    return;
  }
  long long ans1 = 0;
  long long ans2 = 0;
  long long ans = 0;
  for (long long i = 2; i <= w; i = i + 2) {
    for (long long j = 2; j <= h; j = j + 2) {
      ans += (h - j + 1) * (w - i + 1);
    }
  }
  cout << ans;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  long long int T = 1;
  while (T--) {
    solve();
    cout << endl;
  }
  return 0;
}
