#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
const int mod = 1e9 + 7;
int a, b;
long long ans;
int main() {
  ios_base::sync_with_stdio(0);
  cin >> a >> b;
  for (int i = 0; i <= a; i++) {
    int l = i, r = a - i;
    int can = min(l, r);
    for (int j = 1; j <= b; j++) {
      int len = j * 2;
      if (len <= b) ans += 1ll * (b - len + 1) * can;
    }
  }
  cout << ans;
  return 0;
}
