#include <bits/stdc++.h>
using namespace std;
int dx[] = {0, 0, -1, 1, -1, -1, 1, 1};
int dy[] = {1, -1, 0, 0, -1, 1, -1, 1};
int year[15] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);
  long long x, y;
  cin >> x >> y;
  cout << (x / 2) * (x / 2 + x % 2) * (y / 2) * (y / 2 + y % 2);
  return 0;
}
