#include <bits/stdc++.h>
int main() {
  int w, h;
  long long ans = 0;
  scanf("%d%d", &w, &h);
  if ((w < 2) || (h < 2)) {
    printf("0\n");
    return 0;
  }
  for (int i = 2; i <= h; i += 2)
    for (int j = 2, buf; j <= w;
         buf = (w - j + 1), buf *= (h - i + 1), ans += buf, j += 2)
      ;
  printf("%I64d", ans);
  return 0;
}
