#include <bits/stdc++.h>
using namespace std;
long long unsigned int ans;
int main() {
  int a, b;
  cin >> a >> b;
  for (int i = 0; i <= a; i++) {
    for (int j = 0; j <= b; j++) {
      int x = min(i - 0, a - i);
      int y = min(j - 0, b - j);
      ans += x * y;
    }
  }
  cout << ans << endl;
  return 0;
}
