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