#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, m;
  scanf("%d %d", &n, &m);
  long long s = 0;
  for (int i = 1; i <= n / 2; ++i) {
    for (int j = 1; j <= m / 2; ++j) s += i * j;
    for (int j = m / 2 + 1; j < m; ++j) s += i * (m - j);
  }
  for (int i = n / 2 + 1; i < n; ++i) {
    for (int j = 1; j <= m / 2; ++j) s += (n - i) * j;
    for (int j = m / 2 + 1; j < m; ++j) s += (n - i) * (m - j);
  }
  printf("%I64d\n", s);
}
