#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, m;
  cin >> n >> m;
  long long int ans = n * m / 2;
  if (ans * 2 == n * m)
    cout << ans << "\n";
  else
    cout << ans + 1 << "\n";
}
