#include <bits/stdc++.h>
int main() {
  int64_t w, h;
  std::cin >> w >> h;
  auto f = [](int n) { return (n - n / 2) * (n / 2); };
  int64_t sum = 0;
  for (int i = 0; i <= w; i++) {
    for (int j = 0; j <= h; j++) {
      sum += (i / 2) * (j / 2);
    }
  }
  std::cout << sum << std::endl;
  return 0;
}
