#include <bits/stdc++.h>
using namespace std;
long long count_rho(long long w, long long h) {
  long long count_w = 0;
  long long count_h = 0;
  for (int i = 2; i <= w; i += 2) {
    count_w += (w - i + 1);
  }
  for (int i = 2; i <= h; i += 2) {
    count_h += (h - i + 1);
  }
  return count_w * count_h;
}
int main(int argc, char* argv[]) {
  long long w = 0, h = 0;
  cin >> w >> h;
  cout << count_rho(w, h) << endl;
  return 0;
}
