#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  long long r, h;
  cin >> r >> h;
  long long p = (h + 1) / 2, q = (r + 1) / 2;
  cout << (p * q) + (h - p) * (r - q) << endl;
}
