#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  long long int sum = 0;
  for (int i = 2; i <= a; i = i + 2) {
    for (int j = 2; j <= b; j = j + 2) {
      sum += (a - i + 1) * (b - j + 1);
    }
  }
  cout << sum;
  return 0;
}
