#include <bits/stdc++.h>
using namespace std;
long long n, m, cnt, second, ans;
long long mini(long long a, long long b) { return (a < b) ? a : b; }
int main() {
  ios::sync_with_stdio(false);
  cin >> n >> m;
  for (int i = 1; i < m; i++) {
    cnt += mini(m - i, i - 0);
  }
  for (int i = 2; i <= n; i += 2) {
    ans += (n - (i - 1)) * cnt;
  }
  cout << ans;
}
