#include <bits/stdc++.h>
using namespace std;
const int NN = 4 * 1111, INF = 1e9;
int S;
int dp[NN];
vector<int> L;
int rec(int len) {
  if (len > S) return -INF;
  if (len == S) return 0;
  int &res = dp[len];
  if (~res) return res;
  res = -INF;
  for (int i = 0; i < 3; i++) res = max(res, rec(len + L[i]) + 1);
  return res;
}
int main() {
  ios::sync_with_stdio(false);
  int w, h;
  cin >> w >> h;
  int x = 0;
  for (int I = 2; I <= w; I += 2) {
    x += (w - I + 1);
  }
  int y = 0;
  for (int J = 2; J <= h; J += 2) {
    y += (h - J + 1);
  }
  long long ans = (long long)y * x;
  cout << ans << endl;
}
