#include <bits/stdc++.h>
using namespace std;
const double PI = 3.141592653589793;
using ll = long long;
using ld = long double;
using db = double;
using ui = unsigned int;
using ull = unsigned long long;
using pi = pair<int, int>;
using pll = pair<ll, ll>;
using pdb = pair<db, db>;
using vi = vector<int>;
using vl = vector<long>;
using vb = vector<bool>;
using vll = vector<ll>;
using vdb = vector<db>;
using vs = vector<string>;
using vpi = vector<pi>;
using vpll = vector<pll>;
#pragma GCC optimize("-Ofast")
#pragma GCC target( \
    "sse,sse2,sse3,ssse3,sse4,sse4.2,popcnt,abm,mmx,avx2,tune=native")
#pragma GCC optimize("-ffast-math")
#pragma GCC optimize("-funroll-loops")
#pragma GCC optimize("-funroll-all-loops,-fpeel-loops,-funswitch-loops")
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int w, h;
  cin >> w >> h;
  ull m = 0, n = 0;
  for (int i = 2; i <= w; i++) m += i / 2;
  for (int i = 2; i <= h; i++) n += i / 2;
  cout << m * n;
}
