#include <bits/stdc++.h>
const unsigned int M = 1000000007;
long long power(long long x, long long y) {
  long long res = 1;
  while (y > 0) {
    if (y & 1) res = x * res;
    y = y >> 1;
    x = x * x;
  }
  return res;
}
long long power(long long x, long long y, long long mod) {
  long long res = 1;
  while (y > 0) {
    if (y & 1) res = x * res % mod;
    y = y >> 1;
    x = x * x % mod;
  }
  return res;
}
using namespace std;
void nik() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
}
signed main() {
  nik();
  long long test = 1;
  while (test--) {
    long long w, h, ans = 0;
    cin >> w >> h;
    for (long long i = 2; i <= w; i += 2)
      for (long long j = 2; j <= h; j += 2) ans += (w - i + 1) * (h - j + 1);
    cout << ans << "\n";
  }
  return 0;
}
