#include <bits/stdc++.h>
using namespace std;
const int modN = 1e9 + 7;
const double PI = 3.1415926535897932384626433832795028841;
int main() {
  long long i, j, n, m, ans = 0;
  cin >> n >> m;
  for (i = 1; i < (n >> 1) + 1; i++) {
    for (j = 1; j < (m >> 1) + 1; j++) {
      long long a = (n - 2 * i + 1) * (m - 2 * j + 1);
      if (a >= 0) ans += a;
    }
  }
  cout << ans << endl;
  freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
}
