#include <bits/stdc++.h>
using namespace std;
int n, m;
long long int res, x, y;
int main() {
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      x = min(j, m - j);
      y = min(i, n - i);
      res += x * y;
    }
  }
  cout << res;
}
