#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1.0);
const double EPS = 1e-7;
const long long BIG_PRIME7 = 1000000007;
const long long BIG_PRIME9 = 1000000009;
int gcd(int x, int y) { return y ? gcd(y, x % y) : x; }
vector<int> vi, vv;
vector<string> vs;
pair<int, int> pii;
vector<pair<int, int> > vp;
vector<pair<double, double> > vshua;
set<int> seti;
map<string, int> mymap;
queue<string> q;
char st[11];
char cc[200][200];
long long sul[5000];
string s, ss, s1, s2, ss1, ss2, jami;
int i, j, k, m, n, h, d, g, t, l, w, r, mini, maxi, a, b, c, sum;
long long I, J, L, K, M, N, C, SUM;
bool ind, flag;
double x, y, z;
unsigned long long UI, UJ;
int main() {
  cin >> w >> h;
  for (int j = 2; j <= w; j += 2) {
    for (int i = 2; i <= h; i += 2) {
      SUM += (w - j + 1) * (h - i + 1);
    }
  }
  cout << SUM << endl;
  return 0;
}
