#include <bits/stdc++.h>
using namespace std;
long long resp, n, m, tt;
int main() {
  cin >> n >> m;
  if (m % 2 == 0) {
    tt = m / 2;
    tt = tt * (tt + 1) - tt;
  } else {
    tt = m / 2;
    tt = tt * (tt + 1);
  }
  for (long long i = 2; i <= n; i += 2) {
    resp += tt * (n - i + 1);
  }
  cout << resp;
  return 0;
}
